Linux:安装OpenSSH-Server E:Package openssh-server has no installation candidate

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux:安装OpenSSH-Server E:Package openssh-server has no installation candidate相关的知识,希望对你有一定的参考价值。

$sduo apt-get install openssh-server

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package openssh-server has no installation candidate

执行:sudo apt-get update 也提示更新失败,或者无内容可更新。

解决方案:sudo vim /etc/network/interfaces修改ip,重启。

执行:sudo apt-get update

问题解决:

技术分享

http://blog.sina.com.cn/s/blog_3e28c8a50101cax0.html

以上是关于Linux:安装OpenSSH-Server E:Package openssh-server has no installation candidate的主要内容,如果未能解决你的问题,请参考以下文章

怎么看linux 中的openssh-server 装没装

Ubuntu16.04下安装openssh-server

安装openssh-server

【Linux】 ssh链接不上Linux是啥情况,怎么处理?

安装openssh-server

ubuntu安装openssh-server后还是没有.ssh文件怎么办?