我在 64 位机器上运行 Ubuntu 10.04。我尝试将内核从 2.6.32-37-generic 升级到 3.2 版本。
我下载了以下文件:
- linux-headers_all.deb
- Linux 标头-generic_amd64
- Linux 映像-generic_amd64
然后我使用以下命令运行它们:
$ sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
$ sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
$ sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
但是我收到以下错误:
Setting up linux-image-3.2.0-030200-generic (3.2.0-030200.201201042035) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-3.2.0-030200-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Not updating initrd symbolic links since we are being updated/reinstalled
(3.2.0-030200.201201042035 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.2.0-030200.201201042035 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-030200-generic
Found initrd image: /boot/initrd.img-3.2.0-030200-generic
error: cannot seek `/dev/sda'.
error: cannot seek `/dev/sda'.
Found linux image: /boot/vmlinuz-2.6.32-37-generic
Found initrd image: /boot/initrd.img-2.6.32-37-generic
error: cannot seek `/dev/sda'.
error: cannot seek `/dev/sda'.
Found linux image: /boot/vmlinuz-2.6.32-36-generic
Found initrd image: /boot/initrd.img-2.6.32-36-generic
error: cannot seek `/dev/sda'.
error: cannot seek `/dev/sda'.
Found Windows 7 (loader) on /dev/sda1
error: cannot seek `/dev/sda'.
Found Windows Vista (loader) on /dev/sda2
error: cannot seek `/dev/sda'.
Found Windows Vista (loader) on /dev/sda4
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda4. Check your device.map.
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-030200-generic /boot/vmlinuz-3.2.0-030200-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 3.2.0-030200-generic /boot/vmlinuz-3.2.0-030200-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-030200-generic /boot/vmlinuz-3.2.0-030200-generic
那么我该如何避免这种情况呢?
请帮帮我。
干杯,杰尼尔。
答案1
目前 3.2 仅适用于 Ubuntu 12.04。您必须等到 kernel-ppa 团队将其反向移植到 10.04。这将在五月中旬的某个时候。您应该从 synaptic 中删除内核。
如果您想为您的 lucid 设置添加较新的内核,请尝试 kernel-ppa。最新内核是 3.0.0-15(oneiric 内核)。它已反向移植到 lucid 上。(发布后,精确的内核也将在此处提供)
sudo apt-add-repository ppa:kernel-ppa/ppa
sudo apt-get update
打开 synaptic 你会发现新的内核元包。(在我的 32 位系统上linux-image-generic-lts-backport-oneiric
:)
但如果你真的需要 3.2 内核,请将你的 ubuntu 升级到 precise。它在我的测试机器上运行得相当好。