问题:
apt upgrade之后提示:
Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) 原因是没有足够空间 ln: failed to create hard link '/boot/initrd.img-5.9.0-rc7-aml-s812.dpkg-bak' => '/boot/initrd.img-5.9.0-rc7-aml-s812': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.9.0-rc7-aml-s812 cp: error writing '/var/tmp/mkinitramfs_qVbUIa//usr/lib/systemd/systemd-udevd': No space left on device
一开始尝试了多种方法,但唯有以下命令解决问题:
参考:https://www.cnblogs.com/SoraKasvgano/articles/15189419.html
参考:https://blog.csdn.net/2301_79018845/article/details/131927524
参考:https://askubuntu.com/questions/1136480/initramfs-error-when-installing-updating
sudo rm -f /var/lib/dpkg/info/initramfs-tools.post* sudo rm -f /var/lib/dpkg/info/initramfs-tools.pre* sudo rm -f /var/lib/dpkg/info/bcmwl-kernel-source.post* sudo rm -f /var/lib/dpkg/info/bcmwl-kernel-source.pre* sudo dpkg --configure -a