installArchives() 失败:dpkg:依赖性问题阻止“包”的配置

installArchives() 失败:dpkg:依赖性问题阻止“包”的配置

每次我尝试使用 Ubuntu 软件中心时,都会收到一条错误消息,提示“在软件包目录修复之前,无法安装或删除项目”。当我尝试修复时,它说“安装或删除软件包失败”

详细信息中写道:

installArchives() failed: dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.38.46); however:
  Version of linux-image-generic on system is 3.2.0.58.69.
 linux-generic depends on linux-headers-generic (= 3.2.0.38.46); however:
  Version of linux-headers-generic on system is 3.2.0.58.69.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 linux-generic
Error in function: 
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.2.0.38.46); however:
  Version of linux-image-generic on system is 3.2.0.58.69.
 linux-generic depends on linux-headers-generic (= 3.2.0.38.46); however:
  Version of linux-headers-generic on system is 3.2.0.58.69.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured

谢谢您提供的任何帮助。

答案1

您需要一个终端来解决这种情况,软件中心无法处理此类问题。为此,请使用:

sudo dpkg -r linux-generic linux-image-generic
sudo apt-get install linux-generic

这应该可以解决问题。

答案2

首先执行以下操作:

sudo apt-get update

sudo apt-get -f upgrade

然后:

sudo apt-get autoremove

附言:由于您不是企业,我建议您更新到最新版本 13.10。希望对您有所帮助

相关内容