Ubuntu apt cannot install ansible 2.10 from latest official ppa

486 views
Skip to first unread message

Oleh Steblyna

unread,
Apr 28, 2021, 7:16:20 AM4/28/21
to Ansible Project
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

$ sudo apt-get update
Hit:2 https://apt.releases.hashicorp.com bionic InRelease
Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:8 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:9 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done

$ sudo apt-cache policy ansible
ansible:
  Installed: (none)
  Candidate: 2.5.1+dfsg-1ubuntu0.1
  Version table:
     2.9.20-1ppa~bionic -1
        100 /var/lib/dpkg/status
     2.5.1+dfsg-1ubuntu0.1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
     2.5.1+dfsg-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

Ansible 2.10 is not available in official package? What am I doing wrong?

Paul Jaros

unread,
Apr 30, 2021, 7:04:24 AM4/30/21
to Ansible Project
I'm also running Ubuntu 18.04. As ansible is a python package you can update via python like this

pip3 install --user --upgrade pip
pip3 install --user ansible
hash -r

You then get:

$ ansible --version
ansible 2.10.8
 config file = /home/user/git/ansible-win/ansible.cfg
 configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
 ansible python module location = /home/user/.local/lib/python3.6/site-packages/ansible
 executable location = /home/user/.local/bin/ansible
 python version = 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]
Reply all
Reply to author
Forward
0 new messages