我的问题始于从 Ubuntu 12.04 LTS 升级到 14.02 LTS。作为其中的一部分,我收到了一些关于无法删除旧内核的错误消息。
第一次启动到 14.02 时,我通过运行检查一切正常sudo apt-get autoremove,出现了相同的错误。
按照在线指南,我运行了以下内容:
sudo apt-get purge grub-common
sudo apt-get install grub-pc
Run Code Online (Sandbox Code Playgroud)
第一个操作成功了,从我的电脑中删除了 grub。第二次操作失败,结果如下:
Creating config file /etc/default/grub with new version
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-54-generic
Found initrd image: /boot/initrd.img-3.13.0-54-generic
Found linux image: /boot/vmlinuz-3.13.0-44-generic
Found initrd image: /boot/initrd.img-3.13.0-44-generic
Found linux image: …Run Code Online (Sandbox Code Playgroud)