0

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?

12
  • No. still found this error Oct 12, 2022 at 10:27
  • The answer I linked to is a complete duplicate, which have the answers to your issue. And it's not an error, it's a warning - everything is still working. Oct 12, 2022 at 10:29
  • 1
    Again, you didn't do it right. And again, nothing to do with nala. Oct 12, 2022 at 10:39
  • 1
    If you want to explain, edit your question, and fully 1:1 write which commands you typed from the existing answer, and how it fails to help. Thanks. Oct 12, 2022 at 10:51
  • 2
    The suggested fix is an example. You should change both the key ID and the name of the output file. Try /etc/apt/trusted.gpg.d/openfoam.gpg Or move on to answer #2 which has a script. Oct 12, 2022 at 10:56

0

Browse other questions tagged .