Skip to content

containerd.io package version 2.2.1-1~ubuntu.22.04~jammy not available (404 error) #533

@Steen3S

Description

@Steen3S

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-1ubuntu.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:

  1. Check for available package versions before attempting installation, or
  2. Fall back gracefully when a specific package version is not available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions