我正在运行 Ubuntu 14.04.4 LTS,我正在尝试使用 apt-get 安装一个新包。不幸的是,每当我尝试时,我都会收到如下消息:
The following packages have unmet dependencies:
linux-image-extra-3.16.0-70-generic : Depends: linux-image-3.16.0-70-generic but it is not going to be installed
linux-image-generic-lts-utopic : Depends: linux-image-3.16.0-70-generic but it is not going to be installed
linux-signed-image-3.16.0-70-generic : Depends: linux-image-3.16.0-70-generic (= 3.16.0-70.90~14.04.1) but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)
做一些谷歌搜索,我发现这可能是由于引导分区上的空间不足造成的(果然,df显示/boot为 100%)。但是,每当我尝试apt-get在接受的答案中运行命令时,都会遇到与上述相同的错误。
寻找另一个没有使用的解决方案apt-get,我遇到了这篇文章,它建议使用诸如sudo dpkg --purge linux-image-4.2.0-15-generic旧的、未使用的内核之类的东西。
dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' …