Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5042

Raspberry Pi OS • Re: Warning from apt-key: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see te DEPRECATION

$
0
0
...
However, you can move the existing key to the right place.
...
I followed rpdom's steps with one change for fixing the pgdg key (imported when my Zero2 W was running arm64 Bullseye lite, now updated to Bookworm lite):

- Find the keys to be exported as previously.

Code:

samveen@zero2w:~ $ sudo 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   rsa4096 2011-10-13 [SC]      B97B 0AFC AA1A 47F0 44F2  44A0 7FCC 7D46 ACCC 4CF8uid           [ unknown] PostgreSQL Debian Repository
- Save it as as unencrypted key.

Code:

rpdom@raspberrypi:~ $ sudo bash -c 'apt-key export ACCC4CF8 > /etc/apt/trusted.gpg.d/pgdg.asc'Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
- Confirm things are as expected

Code:

samveen@zero2w:~ $ file /etc/apt/trusted.gpg.d/pgdg.asc/etc/apt/trusted.gpg.d/pgdg.asc: PGP public key block Public-Key (old)
- Delete the old key.

Code:

samveen@zero2w:~ $ sudo apt-key del ACCC4CF8Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).OK
- Profit from one less warning.

Statistics: Posted by samveen — Tue Jan 16, 2024 7:00 am



Viewing all articles
Browse latest Browse all 5042

Trending Articles