Skip to content

Error installing Ubuntu packages in case Docker repository already setup #1367

@NymanRobin

Description

@NymanRobin

In my scenario, I had previously configured the Docker apt repository following the guidelines outlined in the official documentation: Docker Installation Guide for Ubuntu.

However, a problem arises when comparing this setup with the setup in Metal3-dev-env. The Docker documentation
uses the plain key format (.asc) for the apt repository signature, whereas the Metal3-dev-env setup utilizes a binary key format (.gpt). This discrepancy results in a clash within the signature, leading to the following error during installation:

TASK [packages_installation : Add Docker Repository] ***************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt_pkg.Error: E:Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ focal: /etc/apt/keyrings/docker.asc != /etc/apt/keyrings/docker.gpg,

In the code, it can be seen that there is already two tasks addressing this particular issue, both aimed at removing outdated entries with varying apt repository structures. These tasks are flagged with TODO comments to be removed further down the line

A potential solution could be to find all apt repositories associated with the URL https://download.docker.com/linux/ubuntu/, removing all entries and enforcing the utilization of signed-by=/etc/apt/keyrings/docker.gpg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.triage/acceptedIndicates an issue is ready to be actively worked on.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions