加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

debian – 为什么apt没有在Wheezy上安装依赖项?

发布时间:2020-12-13 20:08:51 所属栏目:百科 来源:网络整理
导读:如果我跑 # apt-get install sendmailReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are usin
如果我跑
# apt-get install sendmail
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:
 sendmail : Depends: sendmail-bin but it is not going to be installed
E: Unable to correct problems,you have held broken packages.

如果我将sendmail-bin添加到apt-get install命令,它可以工作,但是在Squeeze上没有必要
为什么我必须在Wheezy上指定一些依赖项?

编辑

如果我删除exim4包,那么apt-get install sendmail工作,似乎与包依赖关系有关

编辑

现在我在挤压测试,它是一样的!
我的麻烦是傀儡挤压清单没有工作喘息,思想改变了一些东西,但似乎没有,对不起

仔细查看错误消息,看起来你已经“持有”了包(“E:无法纠正问题,你已经破坏了包裹”).

您可以在Debian中保存软件包,防止它们升级(例如,如果您发现了一个可能导致您在较新版本中出现问题的错误).

您应该能够使用以下方法找到保留的包:

dpkg --get-selections | awk '{if ($2 == "hold") print $0;}'

我的猜测是你的当前sendmail-bin被阻止,apt-get install sendmail无法解决,但apt-get install sendmail sendmail-bin会在必要时安装,升级并删除保持状态.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读