所以我有了一个完整的/boot,现在我真的把事情搞砸了。我真正想要做的是运行sudo apt-get purge linux-image-3.2.0-{35,36,37,38},但我需要首先修复这些其他问题。因此,当我运行sudo apt-get -f install时,这就是我得到的结果(对于其他apt命令,我也得到了类似的输出)
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-generic-pae
The following packages will be upgraded:
linux-generic-pae
1 upgraded, 0 newly installed, 0 to remove and 192 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,726 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.41.49); however:
Version of linux-image-generic-pae on system is 3.2.0.53.63.
linux-generic-pae depends on linux-headers-generic-pae (= 3.2.0.41.49); however:
Version of linux-headers-generic-pae on system is 3.2.0.53.63.
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-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)但这还不足以告诉我另一个错误是什么。我认为它是在运行sudo apt-get -f install时开始的,/boot中只有大约20 in的空闲空间。/boot分区非常烦人。
发布于 2013-09-18 10:47:39
为什么不使用Debian包管理系统- dpkg?
只需使用以下命令删除旧内核:
# dpkg -P linux-image-3.2.0-{35,36,37,38}* 发布于 2013-09-18 01:20:15
好的,在这里找到了解决方案:https://askubuntu.com/a/183625/7945
我需要手动编辑/var/lib/dpkg/status并删除linux-generic-pae包,然后能够运行清除命令,然后重新安装linux-generic-pae。我做sudo apt-get install --reinstall linux-generic-pae只是为了确定。
https://askubuntu.com/questions/346895
复制相似问题