![尝试 apt-get install sftp 失败,并显示:E: 软件包‘sftp’没有安装候选项](https://linux22.com/image/988710/%E5%B0%9D%E8%AF%95%20apt-get%20install%20sftp%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%B9%B6%E6%98%BE%E7%A4%BA%EF%BC%9AE%3A%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E2%80%98sftp%E2%80%99%E6%B2%A1%E6%9C%89%E5%AE%89%E8%A3%85%E5%80%99%E9%80%89%E9%A1%B9.png)
magnus@mt-dell:~$ sudo apt-get install sftp
[sudo] password for magnus:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sftp 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 'sftp' has no installation candidate
该怎么办?
答案1
答案2
openssh-client
软件包包含sftp
可执行文件。使用以下命令进行安装:
sudo apt-get install openssh-client
来源:https://packages.ubuntu.com/focal/amd64/openssh-client/filelist