-
-
Notifications
You must be signed in to change notification settings - Fork 905
Open
Description
The role fails when trying to install Docker on Ubuntu 22.04 (Jammy) because it attempts to install containerd.io=2.2.1-1~ubuntu.22.04~jammy, which returns a 404 Not Found error from the Docker repository.
Error Message
TASK [geerlingguy.docker : Install Docker packages (with downgrade option).]
[ERROR]: Task failed: Module failed: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" -o DPkg::Lock::Timeout=60 install 'docker-ce=5:29.1.3-1~ubuntu.22.04~jammy' 'docker-ce-cli=5:29.1.3-1~ubuntu.22.04~jammy' 'docker-ce-rootless-extras=5:29.1.3-1~ubuntu.22.04~jammy' 'containerd.io=2.2.1-1~ubuntu.22.04~jammy' 'docker-buildx-plugin=0.30.1-1~ubuntu.22.04~jammy' --allow-downgrades' failed: E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/containerd.io_2.2.1-1%7eubuntu.22.04%7ejammy_amd64.deb 404 Not Found
Environment
- OS: Ubuntu 22.04 (Jammy)
- Ansible Role: geerlingguy.docker
- Docker Version: 5:29.1.3-1
ubuntu.22.04jammy
Workaround
vars:
docker_install_compose_plugin: false
docker_add_repo: true
docker_packages:
- "docker-ce=5:29.1.3-1~ubuntu.22.04~jammy"
- "docker-ce-cli=5:29.1.3-1~ubuntu.22.04~jammy"
- "docker-ce-rootless-extras=5:29.1.3-1~ubuntu.22.04~jammy"
- "containerd.io=2.2.0-2~ubuntu.22.04~jammy" # Available version
- "docker-buildx-plugin=0.30.1-1~ubuntu.22.04~jammy"Suggested Fix
Would it be possible to:
- Check for available package versions before attempting installation, or
- Fall back gracefully when a specific package version is not available
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels