Skip to content

Warning: Key is stored in legacy trusted.gpg keyring #762

@kneekoo

Description

@kneekoo

Describe the bug
The warnings are self-explanatory, we should store APT keys separately. The result of using the deprecated apt-key to add all PPAs into the same file (trusted.pgp) is a list of warnings in mintUpdate.

Screenshots
apt-key-deprecated

To Reproduce
Add a PPA, like the ones I have:
ppa:inkscape.dev/stable
ppa:libreoffice/ppa
ppa:minetestdevs/stable

Expected behavior
A clear and concise description of what you expected to happen.

Distribution:

  • Linux Mint 21 Cinnamon

Software version:
mintUpdate 5.8.8

Logs:

W: http://ppa.launchpad.net/inkscape.dev/stable/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://ppa.launchpad.net/libreoffice/ppa/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://ppa.launchpad.net/minetestdevs/stable/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

I used this guide to solve the issue, but this should be taken care of in mintUpdate and mintSources. Now that I think about it, mintUpdate is actually seeing the side effects of mintSources using the deprecated apt-key.

There's also a "quick and dirty" way to fix this, but it's only recommended after adding all PPAs. Otherwise it will be more complicated to deal with for the average/new user.

cd /etc/apt
sudo cp trusted.gpg trusted.gpg.d

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions