Professional Documents
Culture Documents
22
One way to resolve this is to export the GPG key from the deprecated keyring and store it
in /usr/share/keyrings. Fortunately, it's not too difficult:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-
key(8)).
/etc/apt/trusted.gpg
--------------------
1EDD E2CD FC02 5D17 F6DA 9EC0 ADAE 6AD2 8A8F 901A
BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-
key(8)).
3. Now we can update our apt source file for the repository
(e.g., /etc/apt/sources.list.d/microsoft.list), adding a signed-by tag:
...
This can be done with each of the warning messages. Once done, apt will no longer complain.
ShareEditFollowFlag edited yesterday answered Mar 19 at 22:53
holocronweaver matigo
628 1 6 13 12.3k 3 26 52
1 Related Q&A: What commands (exactly) should replace the deprecated apt-key? – Artur Meinild Mar
20 at 13:36
https://askubuntu.com/questions/1398344/apt-key-deprecation-warning-when-updating-system 2/2