码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 16.04下ssh访问提示错误

时间:2019-01-21 19:11:12      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:info   sftp   server   访问   form   list   init.d   ack   read   

liuyan@ubuntu:/etc/init.d$ sudo apt-get install openssh-server -y
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:7.2p2-4)
Depends: openssh-sftp-server but it is not going to be installed
Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

解决办法:

1、安装指定版本的 openssh -client

sudo apt-get install openssh-client=1:7.2p2-4

2、再次安装openssh-server

sudo apt-get install openssh-server

ubuntu 16.04下ssh访问提示错误

标签:info   sftp   server   访问   form   list   init.d   ack   read   

原文地址:https://www.cnblogs.com/liuyanerfly/p/10299943.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!