我正在Debian盒子上工作,试图安装libssl-dev,但是当我尝试时遇到以下错误。 任何人都有解决scheme?
# sudo apt-get install libssl-dev Reading package lists... Done Building dependency tree Reading state information... Done 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: libssl-dev: Depends: libssl0.9.8 (= 0.9.8g-15+lenny13) but 0.9.8o-4~bpo50+1 is to be installed E: Broken packages
未满足的依赖关系声明是这里的关键。 看起来,在-dev软件包需要的libssl版本和在您使用的任何存储库上可用的版本之间存在不匹配。 两者的发行版规范是不同的(lenny vs bpo),你确定你的版本库设置正确吗? 您可以尝试显式指定两个版本号(同一个):
sudo apt-get install libssl-dev=0.9.8g-15+lenny13 libssl0.9.8=0.9.8g-15+lenny13
如果没有人回购,看看回购,并select一个版本。
看起来你已经有了一些代码差异 – 你的libssl-dev似乎试图从lenny的主包仓库安装,而libssl0.9.8看起来像已经从backports安装。
你需要解决这个问题,让版本到不冲突的地方 – 你从apt-cache policy libssl-dev和apt-cache policy libssl0.9.8什么,你知道为什么安装了这个backports版本首先?