debian 无法安装pppoeconf

其他Linux/Unix/BSD/OSX等发行版讨论
回复
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

debian 无法安装pppoeconf

#1

帖子 罗非鱼 » 2012-05-01 7:54

我用硬盘在xp系统下面安装了debian后,发现无法使用pppoeconf,于是这样操作:
我的sda1是c:盘,debian-live-6.0.4--i386-gnome-desktop.iso在这个盘。
1.mkdir /media/iso
mount /dev/sda1 /media/cdrom0
mount -o loop /media/cdrom0/debian-live-6.0.4--i386-gnome-desktop.iso /media/iso
2.gedit /etc/apt/sources.list
加入一行
deb file:///media/iso stable main

3. apt-get install pppd pppoeconf

output:unable to locate package pppd pppoeconf

请问,这个问题,如何解决呢?
rediscover
帖子: 3173
注册时间: 2010-01-13 23:26

Re: debian 无法安装pppoeconf

#2

帖子 rediscover » 2012-05-01 15:27

先运行下 apt-get update,但很可能是 CD1 里没有这个包,找一下其他哪张里有。
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

Re: debian 无法安装pppoeconf

#4

帖子 罗非鱼 » 2012-05-02 11:35

问题解决了,live-gnome这个cd里面没有pppoeconf模块,我挂载普通的cd-1,里面就可以找到pppoeconf.

新的问题出来了。我用同样的办法硬盘安装镜像1,成功。
同样的办法安装镜像2,可以跑完安装全程,安装完成后,重新启动,不能进入任何系统。

镜像1=debian-6.0.4-i386-gnome-desktop.iso

镜像2=debian-6.0.4-i386-CD-1.iso

下面是我在xp系统下面安装镜像1时的操作(根据自己的安装写的记录),
请各位读后,帮我解决一下这个问题,为何同样的办法安装镜像2后,重新开机,任何系统都无法进入?根本不出现启动界面

初始状态:
硬盘三个区
sda1
xp系统 (c:)盘
sda2 fat32数据
sda3 空闲

需要下载的软件及文件清单:
7zip(用来解压缩文件)
explore2fs(用来查看debian下面的文件)
boot.img.gz
initrd.gz
vmlinuz
debian-live-6.0.4-i386-gnome-desktop.iso (镜像文件和前面三个文件的版本一致)
grub4dos(用来安装grub,进行启动管理)

1.设置xp的文件状态,让任何隐藏文件显示,并且显示文件的后缀名。(文件--查看)
2.下载启动文件及iso镜像

http://ftp.nl.debian.org/debian/dists/s ... /hd-media/
将hd-media/目录下面的所有三个文件全部下载,并放在c:\下面。
boot.img.gz 13:03 28-01-12 24911205
[debian <wbr>6.0.4(Squeeze)硬盘安装] initrd.gz 13:03 28-01-12 5165800
[debian <wbr>6.0.4(Squeeze)硬盘安装] vmlinuz
.gz是压缩文件格式,无需解压,引导程序会自动解压。

下载gnome镜像,debian-live-6.0.4-i386-gnome-desktop.iso,并放在c:\下面。


3.下载 grub4dos,用7zip解压后,将grldr文件提出,放在c:盘下。
4.编辑c:\boot.ini文件,增加一行
C:\grldr=install debian

5.编辑menu.lst文件,编写完成后,存放在c:\下面。

title Install Debian 6.0.4 Squeeze
kernel (hd0,0)/vmlinuz
initrd (hd0,0)/initrd.gz
boot

6.重新启动,选择install debian----Install Debian 6.0.4 Squeeze ,进入安装过程。

7.安装时,先不配置网络,分区时,
1)所有的window分区都选择,don't use,xp系统区,标志bootable.
2) / (10g) ,/boot(400m),/home(75g),swap(2g)划分,专门划分一个/boot分区,这些分区全部选择格式化(不含window的那些分区),分区最少要400mb以上,太小的话,难以通过安装。
我安装时,/boot分区是sda6
3)当询问写入引导到哪里时,选择不写入mbr,选择写入sd6(我的/boot分区)

8.安装完毕后,重新调整boot.ini,menu.lst文件
1)调整boot.ini
我把C:\grldr=install debian改成
C:\grldr=welcome to debian6

2)调整menu.lst
进入xp系统,用explore2fs软件查看debian的/boot分区,
[debian <wbr>6.0.4(Squeeze)硬盘安装]

打开那个grub.cfg文件,获得

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7ed5aa65-85bf-4469-92e3-3664e403308c
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=UUID=05e0adc1-0139-4267-8fa0-3ffa3272336f ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7ed5aa65-85bf-4469-92e3-3664e403308c
echo 'Loading Linux 2.6.32-5-686 ...'
linux /vmlinuz-2.6.32-5-686 root=UUID=05e0adc1-0139-4267-8fa0-3ffa3272336f ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-486' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7ed5aa65-85bf-4469-92e3-3664e403308c
echo 'Loading Linux 2.6.32-5-486 ...'
linux /vmlinuz-2.6.32-5-486 root=UUID=05e0adc1-0139-4267-8fa0-3ffa3272336f ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-486
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-486 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 7ed5aa65-85bf-4469-92e3-3664e403308c
echo 'Loading Linux 2.6.32-5-486 ...'
linux /vmlinuz-2.6.32-5-486 root=UUID=05e0adc1-0139-4267-8fa0-3ffa3272336f ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-486
}
选择那个-486 且ro quiet的栏目,相关数据整理后,放入menu.lst,整理好的menu.lst是

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root --ignore-floppies /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load BOOTMGR of Windows VISTA
fallback 2
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 3
find --set-root --ignore-floppies /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 4
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot 0PE.ISO
fallback 5
find --set-root /0PE/0PE.ISO
map /0PE/0PE.ISO (0xff) || map --mem /0PE/0PE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title find and boot MicroPE.ISO
fallback 6
find --set-root /boot/MicroPE.ISO
map /boot/MicroPE.ISO (0xff) || map --mem /boot/MicroPE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title Parted Magic ISO
fallback 7
find --set-root /pmagic.iso
map /pmagic.iso (0xff) || map --mem /pmagic.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title Ultimate Boot CD ISO
fallback 8
find --set-root /ubcd.iso
map /ubcd.iso (0xff) || map --mem /ubcd.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title commandline
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)

title back to dos
quit

title reboot
reboot

title halt
halt

title MAXDOS.IMG
find --set-root --ignore-floppies /boot/MAXDOS.IMG
map --mem /boot/MAXDOS.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)


title Install Debian 6.0 Squeeze
kernel (hd0,0)/vmlinuz
initrd (hd0,0)/initrd.gz
boot

title go to debian6.0.4
kernel (hd0,5)/vmlinuz-2.6.32-5-486 root=UUID=05e0adc1-0139-4267-8fa0-3ffa3272336f ro quiet
initrd (hd0,5)/initrd.img-2.6.32-5-486
boot

仅仅增加了最后两小段,一段可以用来安装(日后整坏了,重新装,);一段进入debian操作系统.

1.磁盘编号在启动程序中从0开始,grub程序中,分区软件中从1开始,所以我的/boot在分区中是sda6,写入menu.lst是hd0,5
2.选择-686的内核,我的cpu是celeron。
回复