Skip to content

version-selection fails if the version matches the distro version #526

@thaJeztah

Description

@thaJeztah

This was a fun one I ran into this when trying to install an old version of docker for testing. The machine I ran this on was an ubuntu 24.04 "noble" machine; when I tried to install Docker 24.0, it matched the 24.04 version in the packages, resulting it to install the latest version (docker 28.4.0);

curl -fsSL get.docker.com | VERSION=24.0 sh
# Executing docker install script, commit: 30c930eeebfc0bdf50564bcda65e90588b35ec2a
+ sh -c apt-get -qq update >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get -qq update >/dev/null
INFO: Searching repository for VERSION '24.0'
INFO: apt-cache madison docker-ce | grep '24.0' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3
INFO: apt-cache madison docker-ce-cli | grep '24.0' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install docker-ce=5:28.4.0-1~ubuntu.24.04~noble docker-ce-cli=5:28.4.0-1~ubuntu.24.04~noble containerd.io docker-compose-plugin docker-ce-rootless-extras=5:28.4.0-1~ubuntu.24.04~noble docker-buildx-plugin >/dev/null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions