安装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

猜你喜欢

转载自blog.csdn.net/u013215852/article/details/80526706