Closed SPR0STO closed 3 months ago
SUMMARY
ERROR "No package matching 'containerd.io' is available" at remote host "ubuntu 20.04"
OS / ENVIRONMENT
$ hostname stands $ cat /etc/*release* DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS" NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal $ uname -a Linux stands 5.4.0-177-generic #197-Ubuntu SMP Thu Mar 28 22:51:24 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
ANSIBLE VERSION
$ ansible --version ansible [core 2.14.0] python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3) jinja version = 3.1.2 libyaml = True
STEPS TO REPRODUCE
$ ansible-galaxy role install mrlesmithjr.docker $ cat Docker.yml --- - name: Docker hosts: stands pre_tasks: - name: Update apt cache ansible.builtin.apt: update_cache: true - name: Install requirements ansible.builtin.package: state: latest name: - ca-certificates - curl - gnupg - lsb-release roles: - role: mrlesmithjr.docker $ ansible-playbook Docker.yml -vvv
EXPECTED RESULTS
Docker packages installed successful
ACTUAL RESULTS
The full traceback is: File "/tmp/ansible_apt_payload_obw0ahbu/ansible_apt_payload.zip/ansible/modules/apt.py", line 526, in package_status File "/usr/lib/python3/dist-packages/apt/cache.py", line 301, in __getitem__ raise KeyError('The cache has no package named %r' % key) fatal: [stands]: FAILED! => { "attempts": 3, "changed": false, "invocation": { "module_args": { "allow_change_held_packages": false, "allow_downgrade": false, "allow_unauthenticated": false, "autoclean": false, "autoremove": false, "cache_valid_time": 0, "clean": false, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "fail_on_autoremove": false, "force": false, "force_apt_get": false, "install_recommends": null, "lock_timeout": 60, "name": [ "containerd.io", "docker-ce" ], "only_upgrade": false, "package": [ "containerd.io", "docker-ce" ], "policy_rc_d": null, "purge": false, "state": "present", "update_cache": null, "update_cache_retries": 5, "update_cache_retry_max_delay": 12, "upgrade": null } }, "msg": "No package matching 'containerd.io' is available" }
[misstype repo](misclick: not the one repo ))
SUMMARY
ERROR "No package matching 'containerd.io' is available" at remote host "ubuntu 20.04"
OS / ENVIRONMENT
ANSIBLE VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
Docker packages installed successful
ACTUAL RESULTS