0

Here is the error I keep getting when running apt update:

W: https://download.sublimetext.com/apt/stable/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://archive.ubuntu.com/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://archive.ubuntu.com/ubuntu/dists/jammy-updates/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://archive.ubuntu.com/ubuntu/dists/jammy-backports/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://archive.ubuntu.com/ubuntu/dists/jammy-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

I'm at a loss on how to proceed. There have been some other posts dealing with similar situations but I'd like some guidance before trying anything drastic. Apt is working fine in all other ways.

Ubuntu 22.04.

Thanks.

vaskark
  • 183
  • 2
  • 12

1 Answers1

0

You could try migrating the key from apt-key to /etc/apt/trusted.gpg.d/ by e.g.

fingerprint='871920D1991BC93C'
key='packages.ubuntu.gpg'

apt-key export $fingerprint | gpg --dearmor > $key
sudo apt-key del $fingerprint
sudo install -o root -g root -m 644 $key /etc/apt/trusted.gpg.d/
rm -f $key

And then apt update should work again.