无法升级-根设备不存在

无法升级-根设备不存在

在 14.04 上使用 apt-get 将内核从 3.10 升级到 4.2 时,升级因出现错误消息而停止。运行时出现相同的错误消息:

$ sudo apt-get upgrade

这是错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
busybox-static
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.103ubuntu4.6) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.6) ...
update-initramfs: Generating /boot/initrd.img-4.2.0-42-generic
Warning: root device  does not exist

Press Ctrl-C to abort build, or Enter to continue

Unsupported platform.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑:我仍然可以充分使用我的系统,并且可以正常启动。问题似乎是升级到 4.2 失败,现在我无法运行 apt-get upgrade,因为它会告诉我根设备不存在

编辑:尝试删除软件包:

$ sudo apt-get --purge autoremove
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

$ sudo dpkg --configure -a
Setting up initramfs-tools (0.103ubuntu4.6) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.6) ...
update-initramfs: Generating /boot/initrd.img-4.2.0-41-generic
Warning: root device  does not exist

跑步:

 $ sudo update-initramfs -c -k 4.2.0-41-generic
update-initramfs: Generating /boot/initrd.img-4.2.0-41-generic
Warning: root device  does not exist

相关内容