aptitude 無法找到依賴項、損壞的包

aptitude 無法找到依賴項、損壞的包

6個月前我在虛擬機器上安裝了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/是一個更好的提問地點。

相關內容