我让自动安全更新填充 /boot。我删除了一些文件,但显然还有其他问题。
这是我在论坛上一次又一次看到的类似问题,但我已经尝试了所有看到的解决方案,但似乎没有任何效果。
root@mail:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-generic-pae : Depends: linux-headers-generic-pae (= 3.2.0.51.61) but 3.2.0.52.62 is installed
linux-image-generic-pae : Depends: linux-image-3.2.0-51-generic-pae but it is not installed
E: Unmet dependencies. Try using -f.
因此我尝试下一个合乎逻辑的步骤并得到以下结果。
root@mail:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.2.0-38-generic-pae linux-headers-3.2.0-41-generic-pae
linux-headers-3.2.0-40 linux-headers-3.2.0-41 linux-headers-3.2.0-38
linux-headers-3.2.0-44 linux-headers-3.2.0-39 linux-headers-3.2.0-45
linux-headers-3.2.0-48 linux-headers-3.2.0-44-generic-pae
linux-headers-3.2.0-39-generic-pae linux-headers-3.2.0-48-generic-pae
linux-headers-3.2.0-45-generic-pae linux-headers-3.2.0-40-generic-pae
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-generic-pae linux-image-generic-pae
The following packages will be upgraded:
linux-generic-pae linux-image-generic-pae
2 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
2 not fully installed or removed.
Need to get 0 B/4,074 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-3.2.0-51-generic-pae; however:
Package linux-image-3.2.0-51-generic-pae is not installed.
dpkg: error processing linux-image-generic-pae (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:No apport report written because the error message indicates its a followup error from a previous failure.
linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.51.61); however:
Package linux-image-generic-pae is not configured yet.
linux-generic-pae depends on linux-headers-generic-pae (= 3.2.0.51.61); however:
Version of linux-headers-generic-pae on system is 3.2.0.52.62.
dpkg: error processing linux-generic-pae (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-generic-pae
linux-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经尝试清除、清理、重新安装等等。有什么建议吗?
谢谢。
答案1
我按照这些说明修复了我的计算机上的这个问题。 http://ubuntuforums.org/showthread.php?t=2169901&p=12778972#post12778972
不确定是否需要所有这些步骤,但执行这些步骤解决了我的问题
1)sudo aptitude update
2)sudo aptitude safe-upgrade
=> 从这个命令我仍然得到同样的错误
3) sudo aptitude build-dep
=> 提示删除一个包。答案是 Y
4)sudo apt-get update
5)sudo apt-get dist-upgrade
问题已解决!我的所有软件包现在都是最新的。
答案2
尝试后
sudo apt-get dist-upgrade
sudo dpkg --configure -a
sudo apt-get install -f
如果损坏的软件包问题仍然存在...解决方案是手动编辑 dpkg 状态文件。
sudo gedit /var/lib/dpkg/status
(您可以使用任何编辑器来编辑文件/如果使用 GUI - 文件管理器来找到它)
找到损坏的包,删除有关它的整个信息块并保存文件。
如果没有帮助,您可以阅读这些...