Skip to content

"Add missing keys" ignores DEB822 Signed-By and adds the key to trusted.gpg.d anyway (Mint 22, mintsources 2.4.3) #288

Backlog

Description

@duckduckgrayduck

My setup

  • Linux Mint 22 (zara), mintsources 2.4.3, python3-repolib 2.2.1+mint1
  • VERSION_CODENAME=zara
  • UBUNTU_CODENAME=noble

Steps to reproduce

  1. Set up Docker's apt repository per Docker's official Ubuntu instructions (https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository): /etc/apt/sources.list.d/docker.sources with Signed-By: /etc/apt/keyrings/docker.asc
  2. Confirm sudo apt update verifies the repo with no errors
  3. Go to Update Manager -> Edit -> Software Sources → Maintenance → Add missing keys

Expected
No keys added. The repo is already verified by its Signed-By keyring.

Actual
Docker's key is fetched from the keyserver and written to `/etc/apt/trusted.gpg.d/.

Cause
I think this is because in 2.4.3, [fix_missing_keys] detects Signed-By like so:

if "signed-by" in output:

if "signed-by" in output:
    key_path = output.split("signed-by=")[1].split("]")[0]

This only matches the one-line [signed-by=…] syntax. Docker is using DEB822 Signed-By: fields, which are never matched and the repo is verified against the global keyrings instead. From a glance, this appears to be fixed on master (2.4.9).

Any chance this could be backported to 22?

Activity

  1. changed the title [-]"Add missing keys" ignores DEB822 `Signed-By` and adds the key to `trusted.gpg.d` (Mint 22, mintsources 2.4.3)[/-] [+]"Add missing keys" ignores DEB822 `Signed-By` and adds the key to `trusted.gpg.d` anyway (Mint 22, mintsources 2.4.3)[/+] on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions