我最近买了一台 XPS 13 DE,它搭载的是 Ubuntu 14.04 和内核 3.13。触摸板和其他一些组件存在一些问题,可以通过升级内核并迁移到 15.04 来解决,所以我正在尝试这样做。
我遵循了 dist-upgrade 的标准程序:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
do-release-upgrade
前三个步骤成功完成,但是do-release-upgrade
步骤失败并出现一些错误,我不确定如何解决:
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-37-generic /boot/vmlinuz-3.16.0-37-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-37-generic
E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.0-37-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-37-generic.postinst line 1025.
dpkg: error processing package linux-image-3.16.0-37-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.16.0-37-generic; however:
Package linux-image-3.16.0-37-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-3.16.0-37-generic:
linux-image-extra-3.16.0-37-generic depends on linux-image-3.16.0-37-generic; however:
Package linux-image-3.16.0-37-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.16.0-37-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.16.0.37.38); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.103ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.13.0-52-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-3.16.0-37-generic
linux-image-generic
linux-image-extra-3.16.0-37-generic
linux-generic
initramfs-tools
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
To continue please press [ENTER]
我该如何解决这个问题?制作一个 15.04 live usb 会更容易吗?
答案1
虽然 14.04 -> 15.04 不可能直接实现这一说法当然是正确的,但它对具体情况没有帮助:
Dell 的 XPS 13 和 M3800 也无法从 14.04 升级到 14.10。原因似乎是出厂安装版本的某些 dpkg.conf 文件具有构建独占标志:例如 var/lib/dkms/oem-audio-hda-daily/0.201408221216~ubuntu14.04.1/build/dkms.conf -> BUILD_EXCLUSIVE_KERNEL="^3.13.*"
更新:以下方法有效 - 删除有问题的 dkms 包,然后重新安装内核:
sudo dpkg -P oem-audio-hda-daily-dkms
sudo dpkg -P casper-memdisk
sudo apt-get install -f linux-image-3.19.0-20-generic
sudo update-grub
答案2
无法直接从 14.04 升级到 15.04。现在很多人认为 15.04 是 LTS。
看起来系统在这些尝试中出现了错误。
您可以从 14.04 升级到 14.10,然后再升级到 15.04。或者直接全新安装。