我正在尝试使用ssh命令,但我有以下内容:
sudo ssh git-codecommit.us-east-1.amazonaws.com
[sudo] password for dali:
sudo: ssh: command not found因此,当我试图安装openssh-client时,我有以下内容:
dali@dali-Lenovo-G50-70:~$ sudo apt-get install openssh-client
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Package openssh-client 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-client' has no installation candidate就像我移除它和重新安装它时一样。
发布于 2016-04-19 12:20:30
您没有说您使用哪个操作系统版本,所以我首先尝试搜索它,给出不同的包名,如ssh、ssh和client等。
打开终端窗口,尝试进行少量搜索,并检查包描述是否显示ssh/ssh客户端。
sudo apt-缓存搜索XXX
...where XXX是以下内容之一: openssh、ssh、ssh-client。
如果是这样的话,那么安装此软件包时:
sudo apt-获取安装_package_name_received_
最后,在磁盘上搜索这个文件,因为您可能将它存储在不同的位置,如果找到,使用这个ssh文件的绝对路径。
sudo find / -name ssh -type f 2>/dev/null
https://askubuntu.com/questions/759046
复制相似问题