问题描述

打开快手_打开照片_ubuntu 16.04 打开ssh

实验课须要用到SSHubuntu 16.04 打开ssh,是apt-getinstallssh,结果出现了错误信息:

ubuntu 16.04 打开ssh_打开照片_打开快手

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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
However the following packages replace it:
  openssh-client
E: Package 'ssh' has no installation candidate

网上找寻解决办法发觉可以用apt-getupdate解决,遂执行之,之后在超长的等待以后还是不能用,这是由于ubuntu中默认使用的是官网的源ubuntu 16.04 打开ssh,须要翻墙linux服务器维护,这儿可以用国外的源去取代红旗linux操作系统,通过更改/etc/apt/sources.list来更改源。

解决方案打开源列表文件sudogedit/etc/apt/sources.list;打开复旦学院开源软件镜像站;将源列表替换成清华源,我这儿是Ubuntu16.04;

打开快手_打开照片_ubuntu 16.04 打开ssh

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src //mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

再执行sudoapt-getupdate;再安装SSHapt-getinstallssh就完全没有问题了;

本文原创地址://gulass.cn/jjsazcwasbdx.html编辑:刘遄,审核员:暂无