Initramfs-tools error under ubuntu16.04

Problem description:
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: process package initramfs- An error occurred during tools (--configure): The
 child process has been installed. The post-installation script returns an error status 1
is processing the trigger for libc-bin (2.23-0ubuntu11.2)...
An error occurred during processing:
 initramfs- tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

View the current Linux kernel version:

 uname -r

View the kernel command:

dpkg --get-selections | grep linux
 

Kernel files are those with images.
Delete old kernel files:

sudo apt-get remove linux-image-4.8.0-36-generic

 sudo apt-get remove linux-image-extra-4.8.0-36-generic

When the uninstallation is incomplete, use the following command:

sudo apt-get autoremove

 

 

 

Guess you like

Origin blog.csdn.net/neptune4751/article/details/109201232