我在Ubuntu下使用agt-get 安装django失败,报错如下:
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-43-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encoun
搜索后知道是/boot空间不足造成。再次后悔当初安装Ubuntu时给boot单独分了空间。不想重装系统那只能是释放/boot空间。方法如下:
cd /boot
ls
查看/boot下的文件,如下:
➜ /opt cd /boot/
➜ /boot ls
abi-4.13.0-36-generic memtest86+.elf
abi-4.13.0-41-generic memtest86+_multiboot.bin
abi-4.13.0-43-generic retpoline-4.13.0-36-generic
config-4.13.0-36-generic retpoline-4.13.0-41-generic
config-4.13.0-41-generic retpoline-4.13.