Ubuntu 解决apt-get安装openssh-server依赖缺失问题
提示缺少依赖
有文章说先安装aptitude,再用aptitude安装包
sudo apt install aptitude
sudo aptitude install xxx
但是很难过,我安装aptitude也显示缺少依赖
按照下述文章安装了缺少的包
https://www.jianshu.com/p/43c58fbce4fb
按照我这里缺少的包是
sudo apt-get install openssh-client=1:6.6p1-2ubuntu2.13
再执行
sudo apt-get install openssh-server
然后启动ssh
sudo service ssh start
sudo /etc/init.d/ssh start
ssh启动成功,问题解决
参考链接:https://blog.csdn.net/qq_43039392/article/details/106493055