我正在尝试在我的 Ubuntu 18.04 上安装 ansible,这会引发 python 依赖错误。我了解机器上默认安装的版本是3.x+。根据以下日志结果,depends 请求 python 版本为 2.x,即 2.7,请建议我一个更好的选择来安装 ansible 或降级 python 版本。
pawan@ubuntu:~/Devops$ sudo apt install -f 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 …Run Code Online (Sandbox Code Playgroud)