相关疑难解决方法(0)

添加 PPA 后如何解决未满足的依赖项?

有时,当我安装东西时,我会收到如下错误:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

package-management apt ppa dependencies software-installation

617
推荐指数
10
解决办法
119万
查看次数

内核版本不匹配导致 APT

Apt 似乎无法为我做任何有用的事情,反复给出这种形式的消息:

dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.37.44); however:
  Version of linux-image-server on system is 3.2.0.37.45.
 linux-server depends on linux-headers-server (= 3.2.0.37.44); however:
  Version of linux-headers-server on system is 3.2.0.37.45.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
Run Code Online (Sandbox Code Playgroud)

这基本上是相同的问题,因为我无法安装任何已关闭的包(linux-image-server、linux-server 依赖项错误)复制到对这种情况完全无用的答案。关于依赖项的非常通用的答案中的任何建议都没有帮助。

明确:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

都没有效果。尽管

sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -u dist-upgrade
sudo apt-get …
Run Code Online (Sandbox Code Playgroud)

package-management apt 12.04

18
推荐指数
1
解决办法
1万
查看次数