gzip: stdout: No space left on device E: mkinitramfs failure find 141 cpio 141 gzip 1

52人阅读 评论(0) 收藏 举报
分类:

今天一开电脑,发现boot空间不够了,然后 运行下面的命令的时候,出现了如下的错误:

sudo apt-get -f install
gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-37-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up linux-image-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-38-generic

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

dpkg: error processing package linux-image-extra-4.13.0-38-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-hwe-16.04:
 linux-image-generic-hwe-16.04 depends on linux-image-4.13.0-38-generic; however:
  Package linux-image-4.13.0-38-generic is not configured yet.
 linux-image-generic-hwe-16.04 depends on linux-image-extra-4.13.0-38-generic; however:
  Package linux-image-extra-4.13.0-38-generic is not configured yet.
 linux-image-generic-hwe-16.04 depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic-hwe-16.04 (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headeNo apport report written because the error message indicates its a followup error from a previous failure.
                                                No apport report written because MaxReports is reached already
                              rs-4.13.0-38 (4.13.0-38.43~16.04.1) ...
Setting up linux-headers-4.13.0-38-generic (4.13.0-38.43~16.04.1) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.13.0-38-generic /boot/vmlinuz-4.13.0-38-generic
Setting up linux-headers-generic-hwe-16.04 (4.13.0.38.57) ...
dpkg: dependency problems prevent configuration of linux-generic-hwe-16.04:
 linux-generic-hwe-16.04 depends on linux-image-generic-hwe-16.04 (= 4.13.0.38.57); however:
  Package linux-image-generic-hwe-16.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-16.04 (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-extra-4.13.0-37-generic (4.13.0-37.42~16.04.1) ...
No apport report written because MaxReports is reached already
                                                              run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-37-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-37-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-37-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up linux-libc-dev:amd64 (4.4.0-119.143) ...
Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.13.0-37-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-37-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
                                                              Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
 linux-firmware
 linux-image-4.13.0-38-generic
 linux-image-extra-4.13.0-38-generic
 linux-image-generic-hwe-16.04
 linux-generic-hwe-16.04
 linux-image-extra-4.13.0-37-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

我的方式是直接跳转到boot目录下删除点东西:

cd /boot
ls

我显示的内容是:

abi-4.13.0-26-generic         initrd.img-4.13.0-37-generic
abi-4.13.0-31-generic         lost+found
abi-4.13.0-32-generic         memtest86+.bin
abi-4.13.0-36-generic         memtest86+.elf
abi-4.13.0-37-generic         memtest86+_multiboot.bin
abi-4.13.0-38-generic         retpoline-4.13.0-36-generic
config-4.13.0-26-generic      retpoline-4.13.0-37-generic
config-4.13.0-31-generic      retpoline-4.13.0-38-generic
config-4.13.0-32-generic      System.map-4.13.0-37-generic
config-4.13.0-36-generic      System.map-4.13.0-38-generic
config-4.13.0-37-generic      vmlinuz-4.13.0-26-generic
config-4.13.0-38-generic      vmlinuz-4.13.0-31-generic
grub                          vmlinuz-4.13.0-32-generic
initrd.img-4.13.0-26-generic  vmlinuz-4.13.0-36-generic
initrd.img-4.13.0-31-generic  vmlinuz-4.13.0-37-generic
initrd.img-4.13.0-32-generic  vmlinuz-4.13.0-38-generic
initrd.img-4.13.0-36-generic

然后我删了一点,空出点空间,自己根据自己的情况删吧:

sudo rm System.map-4.13.0-37-generic
sudo rm config-4.13.0-31-generic
sudo rm vmlinuz-4.13.0-26-generic

最后运行:

sudo apt-get autoremove
就恢复正常了。


查看评论

ubuntu下用apt-get install 安装软件时出现 initramfs-tools错误

错误提示:   gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramf...
  • u010670794
  • u010670794
  • 2013-09-30 00:03:10
  • 5565

initramfs-tools出错的解决方案

Ubuntu从12.04升级到12.10的过程中报错,提示无法安装“initramfs-tools”,继续安装成功后使用sudo apt-get update和sudo apt-get upgrade...
  • yc1404
  • yc1404
  • 2013-01-31 15:16:17
  • 6202

解决boot空间不足

最近安装software 时,总是提示/boot满了 例: sudo apt-get install libdvdread4 gzip: stdout: No space left on dev...
  • thone00
  • thone00
  • 2017-05-23 15:36:50
  • 326

ubuntu16.04 LTS解决/boot空间不足

最近安装software 时,总是提示/boot满了 例:sudo apt-get install libdvdread4 gzip: stdout: No space left on device...
  • WxyangID
  • WxyangID
  • 2016-11-09 10:51:23
  • 10545

Ubuntu磁盘空间不足如何清理boot分区

Ubuntu在进行升级的时候,出现了磁盘空间不足的错误提示,这是就需要对boot分区进行清理,下面小编就给大家介绍下Ubuntu清理boot分区的方法。   问题   更新Ubuntu的时候,报出了...
  • zx249388847
  • zx249388847
  • 2017-05-30 22:24:42
  • 1536

Linux内核更新,解决"gzip: stdout: No space left on device"问题

内核编译过程:   在执行过程中,出现错误: gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 g...
  • yiyihuazi
  • yiyihuazi
  • 2017-11-21 13:36:43
  • 217

/boot空间不足的解决办法

前言在安装ubuntu的时候,根据网上教程给其分配了单独的物理分区,大小为200M。然而每当系统升级的时候,旧的内核版本并不会被清理,升级几次就提示boot内存不足了。网友的思路都是卸载旧的版本内核,...
  • qq_27818541
  • qq_27818541
  • 2017-05-24 14:18:04
  • 5541

ubuntu16.04 boot空间不足 no space left on device

Linux 中 /boot 是存放系统启动文件的地方,安装 ubuntu 时单独分区给 200M 足够,但是系统内核更新后,老的内核依然保存在 /boot 分区内,几次升级后,就会提示 /boot 空...
  • Tong_jy
  • Tong_jy
  • 2018-03-28 16:52:39
  • 78

解决方案:No space left on device

寻找原因从字面上理解,这个问题是说磁盘上没有多余的空间。那么到底是什么地方将空间? 先用df命令查看当前计算器磁盘空闲情况 df -a我这边执行完后可以看到/dev/vda1被完全占用 从根目录下开始...
  • WuZuoDingFeng
  • WuZuoDingFeng
  • 2017-07-26 17:50:18
  • 1400

No space left on device 问题

今天通过
  • mufenghsc
  • mufenghsc
  • 2014-09-03 10:57:43
  • 1360
    个人资料
    持之以恒
    等级:
    访问量: 12万+
    积分: 3142
    排名: 1万+
    最新评论