![update-initramfs -k all -u 期间出错](https://linux22.com/image/892148/update-initramfs%20-k%20all%20-u%20%E6%9C%9F%E9%97%B4%E5%87%BA%E9%94%99.png)
在我的盒子上(在 16.04 下出现此错误并且在 17.04 下继续出现...)
Update-initramfs
查找无法找到的未安装的内核。
dpkg -l
没有显示这个...有人知道如何在某处修复这个剩余的引用吗?
update-initramfs: Generating /boot/initrd.img-3.13.0-62
WARNING: missing /lib/modules/3.13.0-62
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/3.13.0-62: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_TQSiag/lib/modules/3.13.0-62/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_TQSiag/lib/modules/3.13.0-62/modules.builtin: No such file or directory
答案1
刚刚找到答案...
update-initramfs 缺少 /lib/modules/4.4.0-13-generic
这让我注意到了那些被遗弃的垃圾。
root@S20:/etc/depmod.d# cd /var/lib/initramfs-tools/
root@S20:/var/lib/initramfs-tools# ls
3.13.0-62 3.13.0-63 4.10.0-15-generic 4.8.0-46-generic
root@S20:/var/lib/initramfs-tools# rm -rf 3.13.0-6?