Unable to fully install initramfs-tools on debian 12 with additional harddisk errors

Unable to fully install initramfs-tools on debian 12 with additional harddisk errors

大致问题

https://www.techpository.com/linux-error-with-update-initramfs-no-space-left-on-device/

1
2
3
4
5
6
7
8
9
10
update-initramfs: Generating /boot/initrd.img-6.1.0-23-amd64
zstd: error 70 : Write error : cannot write block : No space left on device
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-23-amd64 with 1.
dpkg: 处理软件包 initramfs-tools (--configure)时出错:
已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 1
正在处理用于 libvlc-bin:amd64 (3.0.21-0+deb12u1) 的触发器 ...
在处理时有错误发生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决

首先,创建一个文件/etc/initramfs-tools/conf.d/modules,内容为MODULES=dep

1
echo "MODULES=dep" > /etc/initramfs-tools/conf.d/modules

然后执行 update-initramfs -uupdate-initramfs -k all -u

搞定

0%