![从 15.04 更新到 15.10 时卡住了,正在生成 grub 配置文件](https://linux22.com/image/877968/%E4%BB%8E%2015.04%20%E6%9B%B4%E6%96%B0%E5%88%B0%2015.10%20%E6%97%B6%E5%8D%A1%E4%BD%8F%E4%BA%86%EF%BC%8C%E6%AD%A3%E5%9C%A8%E7%94%9F%E6%88%90%20grub%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6.png)
我尝试通过今天出现的更新通知将 Ubuntu 15.04 升级到 15.10,但在运行时卡住了dpkg --configure
。以下是最后一条消息:
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-4.2.0-18-generic
Found initrd image: /boot/initrd.img-4.2.0-18-generic
Found linux image: /boot/vmlinuz-3.19.0-33-generic
Found initrd image: /boot/initrd.img-3.19.0-33-generic
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img-3.19.0-32-generic
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img-3.19.0-31-generic
Found linux image: /boot/vmlinuz-3.19.0-30-generic
Found initrd image: /boot/initrd.img-3.19.0-30-generic
Found linux image: /boot/vmlinuz-3.13.0-63-generic
Found initrd image: /boot/initrd.img-3.13.0-63-generic
Found linux image: /boot/vmlinuz-3.13.0-62-generic
Found initrd image: /boot/initrd.img-3.13.0-62-generic
Found linux image: /boot/vmlinuz-3.13.0-61-generic
Found initrd image: /boot/initrd.img-3.13.0-61-generic
Found linux image: /boot/vmlinuz-3.13.0-57-generic
Found initrd image: /boot/initrd.img-3.13.0-57-generic
Found linux image: /boot/vmlinuz-3.13.0-55-generic
Found initrd image: /boot/initrd.img-3.13.0-55-generic
Found linux image: /boot/vmlinuz-3.13.0-53-generic
Found initrd image: /boot/initrd.img-3.13.0-53-generic
Found linux image: /boot/vmlinuz-3.13.0-52-generic
Found initrd image: /boot/initrd.img-3.13.0-52-generic
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found linux image: /boot/vmlinuz-3.13.0-46-generic
Found initrd image: /boot/initrd.img-3.13.0-46-generic
Found linux image: /boot/vmlinuz-3.13.0-45-generic
Found initrd image: /boot/initrd.img-3.13.0-45-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: /boot/vmlinuz-3.13.0-43-generic
Found initrd image: /boot/initrd.img-3.13.0-43-generic
Found linux image: /boot/vmlinuz-3.13.0-40-generic
Found initrd image: /boot/initrd.img-3.13.0-40-generic
经过几个小时的等待,什么都没有任何改变。
答案1
尝试删除一些 initrd 映像:
sudo rm /boot/initrd.img-3.13.0-3*
sudo rm /boot/initrd.img-3.13.0-4*
sudo rm /boot/initrd.img-3.13.0-5*
以及 Linux 镜像:
sudo rm /boot/vmlinuz-3.13.0-3*
sudo rm /boot/vmlinuz-3.13.0-4*
sudo rm /boot/vmlinuz-3.13.0-5*
然后使用 apt-get 清除它们:
sudo apt-get purge linux-image-3.13.0-3* linux-image-3.13.0-4* linux-image-3.13.0-5*
然后,通过运行以下命令确保升级正确进行:
sudo apt-get update
sudo apt-get upgrade
如果没有错误,请运行以下命令:
sudo apt-get update
sudo apt-get dist-upgrade
完成后,运行:
cat /etc/apt/sources.list.d | grep wily
它应该会狡猾地返回。
编辑
因为 Windows 似乎处于休眠状态,所以运行以下命令来修复它:
sudo ntfsfix /dev/sdXX
其中 sdXX 是处于“不安全状态”的驱动器分区的驱动器和分区号。示例 sdc1。
然后运行:
sudo update-grub
并继续。
请发布任何错误。