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.发布于 2018-10-10 15:17:50
我想你考虑了docs.ansible.com的安装指南
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt-get install ansibleUbuntu18.04LTS现在将返回,sshpass无法安装。
要解决这个问题,您需要添加Universal,即主要的Ubuntu存储库之一:
若要通过终点站进行此操作:
$ sudo add-apt-repository universe
$ sudo apt-get update最后,重新运行命令来安装Ansible包:
$ sudo apt-get install ansible
$ ansible --version
ansible 2.7.0https://askubuntu.com/questions/1079548
复制相似问题