apt-get 和 dpkg 错误

apt-get 和 dpkg 错误

我无法执行任何 apt-get 命令而不出错。我尝试过许多命令,例如、、sudo apt-get purge等。sudo apt-get -f installsudo dpkg --configure initramfs-tools

我继续收到以下信息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up linux-image-extra-3.19.0-23-generic (3.19.0-23.24) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-23-generic /boot/vmlinuz-3.19.0-23-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-23-generic /boot/vmlinuz-3.19.0-23-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-23-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.19.0-23-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.19.0-23-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-3.19.0-23-generic; however:
  Package linux-image-extra-3.19.0-23-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.19.0.23.22); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                       Errors were encountered while processing:
 linux-image-extra-3.19.0-23-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
scott@scott-1015E:/$ 

谁能帮我?

答案1

你的 /boot 分区已满,apt-get 尝试完成上次升级后的新内核的安装,但总是由于空间不足而失败,请注意以下行3 not fully installed or removed.

我建议卸载旧版本的 linux-image,但由于这似乎不是一个选项,请先尝试扩展您的启动分区。

答案2

无奈之下,我查看了自己安装的内容 - 我找到了 Ubuntu Tweak,并在那里运行了清理程序。它起作用了,而我在这里找不到任何方法,所以问题解决了。

感谢那些试图提供帮助的人。

相关内容