问题描述: gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.15.0-120-generic with 1. dpkg: 处理软件包 initramfs-tools (--configure)时出错: 子进程 已安装 post-installation 脚本 返回错误状态 1 正在处理用于 libc-bin (2.23-0ubuntu11.2) 的触发器 ... 在处理时有错误发生: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
查看当前Linux 内核版本:
uname -r
查看内核命令:
dpkg --get-selections | grep linux
有image的就是内核文件 删除老的内核文件:
sudo apt-get remove linux-image-4.8.0-36-generic
sudo apt-get remove linux-image-extra-4.8.0-36-generic
出现卸载不完全时,用以下命令:
sudo apt-get autoremove