![包裹操作失败,请问我该怎么办?](https://linux22.com/image/1116921/%E5%8C%85%E8%A3%B9%E6%93%8D%E4%BD%9C%E5%A4%B1%E8%B4%A5%EF%BC%8C%E8%AF%B7%E9%97%AE%E6%88%91%E8%AF%A5%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F.png)
installArchives() failed: (Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 346784 files and directories currently installed.)
Preparing to replace ifupdown 0.7.2ubuntu2 (using .../ifupdown_0.7.2ubuntu4_i386.deb) ...
Unpacking replacement ifupdown ...
Preparing to replace gpgv 1.4.11-3ubuntu4.2 (using .../gpgv_1.4.11-3ubuntu4.3_i386.deb) ...
Unpacking replacement gpgv ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up gpgv (1.4.11-3ubuntu4.3) ...
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 346784 files and directories currently installed.)
Preparing to replace gnupg 1.4.11-3ubuntu4.2 (using .../gnupg_1.4.11-3ubuntu4.3_i386.deb) ...
Unpacking replacement gnupg ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up gnupg (1.4.11-3ubuntu4.3) ...
Setting up linux-image-3.5.0-41-generic (3.5.0-41.64) ...
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 3.5.0-41-generic /boot/vmlinuz-3.5.0-41-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-41-generic /boot/vmlinuz-3.5.0-41-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-41-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-41-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-3.5.0-41-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-41-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.5.0-41-generic:
linux-image-extra-3.5.0-41-generic depends on linux-image-3.5.0-41-generic; however:
Package linux-image-3.5.0-41-generic is not configured yet.
dpkg: error processing linux-image-extra-3.5.0-41-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.5.0-41-generic; however:
Package linux-image-3.5.0-41-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.5.0-41-generic; however:
Package linux-image-extra-3.5.0-41-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-geNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
neric:
linux-generic depends on linux-image-generic; however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-extra-3.5.0-40-generic (3.5.0-40.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.5.0-41-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-40-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-40-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-extra-3.5.0-40-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.5.0-40-generic (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up ifupdown (0.7.2ubuntu4) ...
Errors were encountered while processing:
linux-image-3.5.0-41-generic
linux-image-extra-3.5.0-41-generic
linux-image-generic
linux-generic
linux-image-extra-3.5.0-40-generic
Error in function:
Setting up linux-image-3.5.0-41-generic (3.5.0-41.64) ...
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 3.5.0-41-generic /boot/vmlinuz-3.5.0-41-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-41-generic /boot/vmlinuz-3.5.0-41-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-41-generic
gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-41-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-3.5.0-41-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-41-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-extra-3.5.0-40-generic (3.5.0-40.62) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.5.0-41-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-40-generic /boot/vmlinuz-3.5.0-40-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-40-generic
gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-40-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-extra-3.5.0-40-generic.postinst line 1010.
dpkg: error processing linux-image-extra-3.5.0-40-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.5.0-41-generic; however:
Package linux-image-3.5.0-41-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic; however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-3.5.0-41-generic:
linux-image-extra-3.5.0-41-generic depends on linux-image-3.5.0-41-generic; however:
Package linux-image-3.5.0-41-generic is not configured yet.
dpkg: error processing linux-image-extra-3.5.0-41-generic (--configure):
dependency problems - leaving unconfigured
答案1
磁盘已满。具体来说,是保存内核映像(启动系统所需的文件)的分区。请参见此处:
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.5.0-41-generic with 1.
您需要清除旧的内核版本。
简单的方法是安装“Ubuntu Tweak”(通过软件中心),单击“Janitor”选项卡(最后一个),然后在窗口左侧的列表中选择“系统>旧内核”,让其清理。
您还可以在这里看到如何删除旧内核版本来清理启动菜单?了解如何手动执行此操作。(几种可能的方法)删除至少一个旧内核版本包后,运行dpkg-reconfigure -a
以清理所有半安装的包。
我认为 Ubuntu 应该可以让这变得更容易一些,但是那里提到的方法也有效。
如果这没有帮助或者您需要更多信息,请编辑您的问题并附加以下命令的输出:
df
df -i
ls -la /boot