apt-get -f install 挂起在解压 linux-headers-4.4.0-66-generic

apt-get -f install 挂起在解压 linux-headers-4.4.0-66-generic

我正在运行 Ubuntu 16.04,当尝试解压 linux-headers-4.4.0-66-generic apt 时,它无限期挂起。我终止了 apt 进程,删除了过时的锁文件,然后运行:

sudo apt-get clean
sudo dpkg --configure -a

结果是:

dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 4.4.0.66.70);
however:
Version of linux-headers-generic on system is 4.4.0.64.68.

dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-generic

然后我跑了:

sudo apt-get update
sudo apt-get ugrade

结果如下:

...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 4.4.0.66.70) but 4.4.0.64.68 is installed
E: Unmet dependencies. Try using -f.

运行 apt-get -f install 会再次启动循环,并且我无法正确解决 apt 挂起和 linux-generic 安装问题。

有任何想法吗?

答案1

我的电脑在更新过程中断电后也遇到了同样的问题。此帖子的最佳答案对我有帮助:

如何删除状态不佳的软件包,软件中心冻结,无突触

相关内容