1. 程式人生 > >啟動SSH-server出現錯誤。Package openssh-server is not available, but is referred to by another package.

啟動SSH-server出現錯誤。Package openssh-server is not available, but is referred to by another package.

       sudo apt-get install openssh-server

往剛裝好的ubuntu上一敲,出現如下錯誤:

[email protected]:~$ 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

在source.list中新增最新的源 :

       sudo apt-get update

       sudo apt-get upgrade

命令能找到資源並更新成功。然後再次使用
   sudo apt-get install openssh-server