Xftp连接失败,sudo apt-get install 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

apt-get 和apt类似 高版本就用apt

解决办法:

sudo apt-get  autoremove  openssh-client

然后重新安装:

sudo apt-get install openssh-client openssh-server

启动sshd服务:

sudo /etc/init.d/ssh start

猜你喜欢

转载自blog.csdn.net/m0_38072683/article/details/81193270
今日推荐