如何在ubuntu上安装sshpass? [英] How to install sshpass on ubuntu?

查看:3205
本文介绍了如何在ubuntu上安装sshpass?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装sshpass时发生以下错误,





pc-20-b102in:〜$ sudo apt-get安装sshpass

阅读包裹清单...完成

建筑依赖树

阅读州信息......完成

E:无法找到包裹sshpass



我尝试过:



当我尝试安装sshpass时出现以下错误,





pc-20-b102in:〜$ sudo apt-get install sshpass

阅读包裹清单...完成

建筑依赖树

阅读州信息......完成

E:无法找到包sshpass

解决方案

sudo apt-get install sshpass

阅读包列表...完成

构建依赖树

读取状态信息...完成

E:无法找到包sshpass



我是什么尝试过:



当我尝试安装sshpass时出现错误,





pc-20-b102in:〜


sudo apt-get install sshpass

阅读包列表...完成

构建依赖树

读取状态信息...完成

E:无法找到包sshpass


更新包裹清单首先:

 sudo apt-get update 



然后检查包装是否可用:

 apt-cache search sshpass 



如果成功,应该可以安装。



如果没有,请检查您的存储库。该列表存储在文件 /etc/apt/sources.list /etc/apt/sources.list.d / 的文件中。



要添加存储库,请使用

 sudo add-apt-repository< repo> 



默认存储库是 main 受限 Universe multiverse


when i am trying to install sshpass following error occured,


pc-20-b102in:~$ sudo apt-get install sshpass
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshpass

What I have tried:

when i am trying to install sshpass following error occured,


pc-20-b102in:~$ sudo apt-get install sshpass
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshpass

解决方案

sudo apt-get install sshpass
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshpass

What I have tried:

when i am trying to install sshpass following error occured,


pc-20-b102in:~


sudo apt-get install sshpass
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sshpass


Update the package list first:

sudo apt-get update


Then check if the package is available:

apt-cache search sshpass


If that succeeds, installing should be possible.

If not, check your repositories. The list is stored in the file /etc/apt/sources.list and within files at /etc/apt/sources.list.d/.

To add repositories use

sudo add-apt-repository <repo>


The default repositories are main, restricted, universe, and multiverse.


这篇关于如何在ubuntu上安装sshpass?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆