linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

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

Open kneekoo opened 1 year ago

kneekoo commented 1 year ago

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:

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
terr72 commented 1 year ago

This might be more related to mintupgrade, which takes care of the upgrading process. I opened a bug report over there: https://github.com/linuxmint/mintupgrade/issues/58

It's also not just related to PPAs. All 3rd party repositories like Google Earth, Virtualbox, WINE, Skype, ... are affected.

kneekoo commented 1 year ago

This might be more related to mintupgrade, which takes care of the upgrading process. I opened a bug report over there

Thanks, and technically yes. Practically it's also mintupdate's issue because this gets in the way of doing the regular updates. I'd rather see this cross-posted and hopefully get attention, than having to wait for 21.1 this Christmas.

This is one of those things that require some digging and knowing what to do and how to recover from a mistake, which is out of reach for the average users.