![包装已损坏,软件仅部分更新](https://linux22.com/image/837911/%E5%8C%85%E8%A3%85%E5%B7%B2%E6%8D%9F%E5%9D%8F%EF%BC%8C%E8%BD%AF%E4%BB%B6%E4%BB%85%E9%83%A8%E5%88%86%E6%9B%B4%E6%96%B0.png)
我遇到了一个问题,我无法下载任何东西,它说软件包已损坏,但是当我删除软件包时,它现在只能部分升级,即使这样也不起作用!它说的是:
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 选项应该可以强制执行所需的操作