首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试在Ubuntu 18.04上安装Ansible时未满足的依赖关系

问尝试在Ubuntu 18.04上安装Ansible时未满足的依赖关系
EN

Ask Ubuntu用户
提问于 2018-09-29 17:13:59
回答 1查看 4.3K关注 0票数 1
代码语言:javascript
复制
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.
EN

回答 1

Ask Ubuntu用户

发布于 2018-10-10 15:17:50

我想你考虑了docs.ansible.com的安装指南

代码语言:javascript
复制
$ 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

Ubuntu18.04LTS现在将返回,sshpass无法安装。

要解决这个问题,您需要添加Universal,即主要的Ubuntu存储库之一:

  • 主要规范支持的免费和开放源码软件。
  • 宇宙-社区维护自由和开放源码软件。
  • 设备专用驱动程序。
  • 多重-受版权或法律问题限制的软件。

若要通过终点站进行此操作:

代码语言:javascript
复制
$ sudo add-apt-repository universe
$ sudo apt-get update

最后,重新运行命令来安装Ansible包:

代码语言:javascript
复制
$ sudo apt-get install ansible
$ ansible --version
  ansible 2.7.0
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1079548

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档