apport information ** Tags added: apport-collected focal
** Description changed: When using ansible on 20.04, package installation via apt fail. Consider the following playbook: #!/usr/bin/env ansible-playbook # --- - name: Install packages hosts: localhost tasks: - name: install apt packages apt: pkg: - git update_cache: no cache_valid_time: 3600 become: true This playbook fails with: ansible-playbook apt.yml PLAY [Install packages] ****************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************* ok: [localhost] TASK [install apt packages] ************************************************************************************************** fatal: [localhost]: FAILED! => { "changed": false } MSG: <class 'apt_pkg.Cache'> returned a result with an error set PLAY RECAP ******************************************************************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 + --- + ProblemType: Bug + ApportVersion: 2.20.11-0ubuntu27 + Architecture: amd64 + CasperMD5CheckResult: skip + DistroRelease: Ubuntu 20.04 + Package: ansible 2.9.6+dfsg-1 + PackageArchitecture: all + ProcEnviron: + TERM=xterm-256color + PATH=(custom, no user) + XDG_RUNTIME_DIR=<set> + LANG=de_DE + SHELL=/bin/bash + ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30 + Tags: focal + Uname: Linux 5.4.0-26-generic x86_64 + UpgradeStatus: No upgrade log present (probably fresh install) + UserGroups: + + _MarkForUpload: True ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/1874195/+attachment/5358300/+files/Dependencies.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874195 Title: ansible is not able to install packages via apt on 20.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1874195/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs