从 Debian 6 Squeeze 稳定版切换到测试版

从 Debian 6 Squeeze 稳定版切换到测试版

我有这个问题我问了一些朋友,他们的建议是从我混乱的 Debian Squeeze 系统升级到测试版本。所以我就这么做了。首先,我更改了/etc/apt/sources.list文件以使用测试存储库。然后我用了sudo apt-get update和 之后sudo apt-get dist-upgrade。经过很长一段时间后,一切都升级了(我想)。然后我看到了重新启动系统的系统警告。完毕。

重启后让我惊讶的第一件事是 GRUB 加载程序。不仅有 和 的两个选择Debian 2.6.x.xDebian 2.6.x.x (recovery)还有新版本Debian 3.0.xx(grub 列表中的第一个)和Debian 3.0.xx。我选择了Debian 3.0.xx然后整个屏幕就乱了。只有一些彩色像素,看不到任何东西。有谁知道我该如何应对?

PS 如果我选择 Debian 2.6.xx,它可以工作(可以说是正确的),但设计发生了变化,我不再有左上角的系统菜单 + 我在桌面上没有鼠标右键单击。

正如吉尔斯建议的那样,我发布了输出/boot/grub/grub.cfg

maistora@maistora:~$ vi /boot/grub/grub.cfg 


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos1)'
  search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
        echo    'Loading Linux 3.0.0-1-686-pae ...'
        linux   /boot/vmlinuz-3.0.0-1-686-pae root=UUID=94dc5612-177b-4222-b426-f9fa5bad2664 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.0.0-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
        echo    'Loading Linux 3.0.0-1-686-pae ...'
        linux   /boot/vmlinuz-3.0.0-1-686-pae root=UUID=94dc5612-177b-4222-b426-f9fa5bad2664 ro single
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.0.0-1-686-pae
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
        echo    'Loading Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=94dc5612-177b-4222-b426-f9fa5bad2664 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/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 gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 94dc5612-177b-4222-b426-f9fa5bad2664
        echo    'Loading Linux 2.6.32-5-686 ...'
        linux   /boot/vmlinuz-2.6.32-5-686 root=UUID=94dc5612-177b-4222-b426-f9fa5bad2664 ro single
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

lspci

maistora@maistora:~$ lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] (rev 01)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02)
00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA Controller / IDE mode (rev 03)
00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:07.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3400 Series
02:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)

dpkg -l linux-image-*

maistora@maistora:~$ dpkg -l linux-image-\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                                Description
+++-======================================-======================================-============================================================================================
un  linux-image-2.6                        <none>                                 (no description available)
un  linux-image-2.6-486                    <none>                                 (no description available)
ii  linux-image-2.6-686                    3.0.0+39                               Linux for modern PCs (dummy package)
un  linux-image-2.6-686-bigmem             <none>                                 (no description available)
un  linux-image-2.6-amd64                  <none>                                 (no description available)
un  linux-image-2.6-k7                     <none>                                 (no description available)
un  linux-image-2.6-openvz-686             <none>                                 (no description available)
un  linux-image-2.6-vserver-686            <none>                                 (no description available)
un  linux-image-2.6-vserver-686-bigmem     <none>                                 (no description available)
un  linux-image-2.6-xen-686                <none>                                 (no description available)
ii  linux-image-2.6.32-5-686               2.6.32-38                              Linux 2.6.32 for modern PCs
ii  linux-image-3.0.0-1-686-pae            3.0.0-3                                Linux 3.0.0 for modern PCs
ii  linux-image-686-pae                    3.0.0+39                               Linux for modern PCs (meta-package)

希望我一切都正确。

答案1

我在从稳定版更新到测试版时遇到了同样的问题,我认为最好的方法是从干净版重新安装测试版。因为当您更新时,您可能会遇到很多损坏的依赖项,并且您安装的与旧库一起使用的软件可能会出现问题。此外,如果您安装了封闭驱动程序 fglrx,它是为您以前版本的内核构建的,可以用新版本来破坏。此外,pae 内核也可能是一个问题。因此,如果您不想与损坏的依赖项和驱动程序作斗争,我建议您进行全新安装。

相关内容