包装已损坏,软件仅部分更新

包装已损坏,软件仅部分更新

我遇到了一个问题,我无法下载任何东西,它说软件包已损坏,但是当我删除软件包时,它现在只能部分升级,即使这样也不起作用!它说的是:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  linux-image-3.8.0-19-generic linux-image-extra-3.8.0-19-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 123 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 287875 files and directories currently installed.)
Removing linux-image-extra-3.8.0-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: uvesafb: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postrm line 328.
dpkg: error processing linux-image-extra-3.8.0-19-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports has already been reached
                                                                    Removing linux-image-3.8.0-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: uvesafb: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.8.0-19-generic.postrm line 328.
dpkg: error processing linux-image-3.8.0-19-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports has already been reached

Errors were encountered while processing:
 linux-image-extra-3.8.0-19-generic
 linux-image-3.8.0-19-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

我正在运行 Ubuntu 13.04 32 位。请多多包涵,我是新手...

答案1

在终端中输入sudo apt-get upgrade -f

-f 选项应该可以强制执行所需的操作

相关内容