ubuntu上运行命令sudo apt-get dist-upgrade,出现错误gzip: stdout: No space left on device
2017-07-27 15:54
656 查看
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
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
相关文章推荐
- Ubuntu14.04 运行命令 sudo apt-get update出现无法解析 软件无法下载的错误
- "gzip: stdout: No space left on device" while upgrading the kernel
- gzip: stdout: No space left on device问题的解决
- openwrt 系统运行出现 No space left on device
- Linux中出现“No space left on device”错误的排查与解决方法
- Ubuntu在执行sudo apt-get install ***出现E:Encountered a section with no Package header错误解决方法
- ubuntu cd /h tab键显示错误:bash: cannot create temp file for here-document: No space left on device
- ubuntu编译内核时出现“when writing output to /tmp/ccf0eS0W.s: No space left on device”
- linux QT 安装出现No space left on device错误 解决方法
- CentOS 出现no space left on device错误解决办法
- # 关于adb push XX.apk /system/app/XX.apk 时出现错误:No space left on device 错误
- Ubuntu14.04 运行命令 sudo apt-get update出现GPG error
- django出现Errno=No space left on device (ENOSPC)错误的解决方法
- ubuntu编译工程出现: fatal error: error writing to /tmp/cc1ezU8m.s: No space left on device
- Linux内核更新,解决"gzip: stdout: No space left on device"问题
- Linux内核更新,解决"gzip: stdout: No space left on device"问题
- 在Ubuntu终端中使用安装命令Sudo apt-get install xxx时时出现E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)的错误解决方案
- MOTO MB860 root时出现No space left on device解析办法
- 磁盘空间满导致oracle不能正常使用:错误关键字ORA-09817 No space left on device
- centos编译内核出现:no space left on device 解决方法