ubuntu上运行命令sudo apt-get dist-upgrade,出现错误gzip: stdout: No space left on device


terminal显示的日志:

Setting up linux-image-extra-4.4.0-87-generic (4.4.0-87.110) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-87-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-87-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-4.4.0-87-generic; however:
  Package linux-image-extra-4.4.0-87-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headers-4.4.0-87 (4.4.0-87.110) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up linux-headers-4.4.0-87-generic (4.4.0-87.110) ...
Setting up linux-headers-generic (4.4.0.87.93) ...
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.87.93); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up poppler-utils (0.41.0-0ubuntu1.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up python-cryptography (1.2.3-1ubuntu0.1) ...

运行命令:

uname -r

显示:

eric@eric-Satellite-C850:~$ uname -r
4.4.0-34-generic

查看自己的内核版本,然后运行命令:


dpkg -l 'linux-image-*' | grep '^ii'

显示:

eric@eric-Satellite-C850:~$ dpkg -l 'linux-image-*' | grep '^ii'
ii  linux-image-4.4.0-34-generic       4.4.0-34.53  amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-87-generic       4.4.0-87.110 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-34-generic 4.4.0-34.53  amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-87-generic 4.4.0-87.110 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                4.4.0.87.93  amd64        Generic Linux kernel image

然后运行命令,删除其中一个没有运行的内核,像这样:

eric@eric-Satellite-C850:~$ sudo apt-get purge linux-image-3.13.0-93-generic 

会提示是否删除,然后选择Y,删除后就有空间了,然后就解决了内核更新空间不足的问题了哈



参考文献:

[1].ubuntu上安装软件时,出现错误gzip: stdout: No space left on device
http://www.cnblogs.com/shanql/articles/6050941.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值