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

网友投稿 1240 2022-08-23

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

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-genericrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-87-generic /boot/vmlinuz-4.4.0-87-genericupdate-initramfs: Generating /boot/initrd.img-4.4.0-87-genericgzip: stdout: No space left on deviceE: mkinitramfs failure cpio 141 gzip 1update-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 1dpkg: error processing package linux-image-extra-4.4.0-87-generic (--configure): subprocess installed post-installation script returned error exit status 1dpkg: 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 unconfiguredSetting 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 unconfiguredSetting 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 -r4.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 SMPii 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 SMPii 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 SMPii 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 SMPii 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​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:[leetcode] 652. Find Duplicate Subtrees
下一篇:ASP.NET性能监控和优化入门
相关文章

 发表评论

暂时没有评论,来抢沙发吧~