启动SSH-server出现错误。Package openssh-server is not available, but is referred to by another package.

Linux 专栏收录该内容
16 篇文章 0 订阅
        sudo apt-get install openssh-server

往刚装好的ubuntu上一敲,出现如下错误:

steve@basil:~$ sudo 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


http://icesquare.com/wordpress/package-ssh-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/


在source.list中添加最新的源:


 deb http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
        deb-src http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
去掉/etc/apt/source.list文件中原先存在的源,加入以上源地址,然后使用

       sudo apt-get update

       sudo apt-get upgrade

命令能找到资源并更新成功。然后再次使用
   sudo apt-get install openssh-server


参考:

http://blog.chinaunix.net/uid-26404477-id-3382633.html


  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值