dakboard / Hardware-OS

DAKboard Wall Display, CPU, and Raspberry Pi
25 stars 4 forks source link

Warning from apt-key: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see te DEPRECATION #162

Closed nitr8 closed 2 weeks ago

nitr8 commented 4 months ago

Describe the bug Running sudo apt-get update you get the following error: W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

To Reproduce Steps to reproduce the behavior:

  1. SSH to pi
  2. Run sudo apt-get update
  3. Wait for source list to be updated
  4. See error

Expected behavior No warnings or errors

Screenshots If applicable, add screenshots to help explain your problem.

Device Type

DAKboard OS Version (please complete the following information):

Additional context You can move the existing key to the right place.

dakboard:~ $  apt-key list | grep -A4 "trusted.gpg$"
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D **90FD DD2E**
uid           [ unknown] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <mpthompson@gmail.com>

Now fix:

sudo apt-key export 90FDDD2E | sudo gpg --dearmor -o /tmp/raspi.gpg
sudo apt-key del 90FDDD2E
sudo mv /tmp/raspi.gpg /etc/apt/trusted.gpg.d/
sudo apt-get update 
Hit:1 http://archive.raspberrypi.com/debian bookworm InRelease
Hit:2 http://raspbian.raspberrypi.com/raspbian bookworm InRelease
Reading package lists... Done
jatoric commented 1 month ago

Fix will be included with DAKboard OS 4.04