ubantu离线安装ansible_Ubuntu 18.04上安装Ansible时未满足的依赖关系

abhinav@ubuntu:~$ sudo apt-get install ansible Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ansible : Depends: sshpass but it is not installable E: Unable to correct problems, you have held broken packages.

$ sudo apt-get update $ sudo apt-get install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt-get install ansible

Ubuntu 18.04 LTS现在将返回,sshpass无法安装。

要解决此问题,您需要添加通用存储库,这是主要-规范支持的免费和开源软件。

Universe-社区维护的免费和开源软件。

受限-设备的专有驱动程序。

Multiverse-受版权或法律问题限制的软件。

要通过终端执行此操作:

$ sudo add-apt-repository universe $ sudo apt-get update

最终,重新运行命令以安装Ansible软件包:

$ sudo apt-get install ansible $ ansible --version ansible 2.7.0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值