![无法卸载旧内核](https://linux22.com/image/1042932/%E6%97%A0%E6%B3%95%E5%8D%B8%E8%BD%BD%E6%97%A7%E5%86%85%E6%A0%B8.png)
我无法安装新内核,因为启动分区已满。但是我也无法删除旧内核:
sudo apt-get purge -f linux-image-3.2.0-29-generic-pae
[.. reading package lists etc, standard stuff, not relevant & was too lazy to translate it]
The following packages have unmet dependencies:
linux-image-generic-pae : depends on: linux-image-3.2.0-41-generic-pae but shall not be installed
E: unmet dependencies. try »apt-get -f install« without giving a package name (or give a solution).
有办法修复吗?谢谢 :-)
(注意:apt-get -f install 也会失败:可用空间不足!)
答案1
您正在运行 Linux 3.2.0-29-generic-pae 吗?请尝试uname -r
。要清除旧内核,请尝试:
Kver=$( uname -r)
( dpkg -l linux-image\*; dpkg -l linux-doc\*;dpkg -l linux-headers\*) | egrep -v "$Kver"
来获取你可以使用的过时软件包列表apt-get purge
。
如果你设法删除了当前内核,你将会非常伤心。你手边有 Live CD 或安装盘吗?