1. 程式人生 > >安裝openssh-server失敗解決

安裝openssh-server失敗解決

sudo 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 (*******) but ***** is to be installed
E: Broken packages

解決辦法:

sudo apt-get  autoremove  openssh-client

然後重新安裝:

sudo apt-get install openssh-client openssh-server

啟動sshd服務:

sudo /etc/init.d/ssh start