I install nala in Ubuntu 22.04 today. After install I have a warning on my terminal when I run the command sudo apt update
.
The warning is:
W: http://dl.openfoam.org/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.
I've done the following:
sudo apt-key list
terminal shows so many pub file around 8-9. Then i command
sudo apt-key export 91E7EE5E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/team-xbmc.gpg
Terminal show:
File '/etc/apt/trusted.gpg.d/team-xbmc.gpg' exists. Overwrite? (y/N)
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). gpg:
WARNING: nothing exported Overwrite? (y/N)
Now what need to do?
nala
. – Artur Meinild Oct 12 '22 at 10:31nala
. – ChanganAuto Oct 12 '22 at 10:39/etc/apt/trusted.gpg.d/openfoam.gpg
Or move on to answer #2 which has a script. – Artur Meinild Oct 12 '22 at 10:56openfoam.gpg
from developer runsudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc"
– Sad3ng Oct 12 '22 at 11:39W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.microsoft.com/repos/code stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
– Ashish Bhowmick Oct 13 '22 at 12:57apt
keys should be correctly installed now (preferably to/etc/apt/keyrings
and not/etc/apt/trusted.gpg.d
, because this can be risky). – Artur Meinild Oct 13 '22 at 13:36