[mythtv-users] deprecation on apt-key?

Paul Harrison mythtv at mythqml.net
Sun Dec 4 11:18:26 UTC 2022


On 04/12/2022 10:37, James Abernathy wrote:

> Just started see this warning when running apt update:
>
> W: http://ppa.launchpad.net/mythbuntu/32/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.
>
> Anything I should do on my end?
>
> Jim A
>

These are some notes I took when I started to get these with another PPA 
that should help. The first link below has more info so wont go into 
details.


###################################################################################
# How to fix Key is stored in legacy trusted.gpg keyring after Ubuntu 
22.04 update
###################################################################################

https://askubuntu.com/questions/1403556/key-is-stored-in-legacy-trusted-gpg-keyring-after-ubuntu-22-04-update
https://askubuntu.com/questions/1398344/apt-key-deprecation-warning-when-updating-system/1398346#1398346

sudo apt-key list

ls -l /etc/apt/sources.list.d

copy the old key to the keyring file
sudo apt-key export A4C6383F | sudo gpg --dearmour -o 
/usr/share/keyrings/digitalocean-agent.gpg

add to apt list file the location of the keyring file
deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] 
packages.microsoft.com

Run sudo apt update to confirm the message is gone
sudo apt update

If the message is gone, remove the original signature:
sudo apt-key del A4C6383F


Paul H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20221204/36255580/attachment.htm>


More information about the mythtv-users mailing list