![aptitude 无法找到依赖项,损坏的软件包](https://linux22.com/image/959590/aptitude%20%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%E4%BE%9D%E8%B5%96%E9%A1%B9%EF%BC%8C%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
六个月前,我在虚拟机上安装了 ubuntu。到目前为止,我从未需要过 ssh 连接。但是当我尝试安装 sshd 时,出现此错误:
root@onur-vmdesktop:/home/onur# apt-get install openssh-server
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:
openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu5 is to be installed
E: Broken packages
我能做些什么?
答案1
我会建议
aptitude update
aptitude upgrade
aptitude install openssh-server
您可以aptitude
用apt-get
系统地替换。
但我相信https://askubuntu.com/是一个更好的询问地点。