Editing Public key not available error

Da MEPIS Documentation Wiki.

Jump to: navigation, search

Explanation: the new apt-get introduced package authentication in order to improve security. You can still install non-authenticated packages, but if you want to take advantage of this feature do the following (note that not all the deb repositories implemented this feature, if you upgrade from such a repository you'll get a "packages could not be authenticated" warning).



If you get a warning similar to this:

W: GPG error: ftp://ftp.nerim.net unstable Release: The following signatures couldn't be verified 
because the public key is not available: NO_PUBKEY 07DC563D1F41B907

Note the 16 character string of seemingly random numbers and letters? That is the public key, put that in place of <pubkey> in the instructions below.

  1. open konsole, type "su" and root password.
  2. gpg --keyserver wwwkeys.eu.pgp.net --recv-keys <pubkey>
  3. gpg --armor --export <pubkey> | apt-key add -
  4. apt-get update

Keys may be on any of these servers as well:

  1. minsky.surfnet.nl
  2. subkeys.pgp.net
  3. search.keyserver.net
  4. wwwkeys.pgp.net
  5. pgp.dtype.org
  6. wwwkeys.us.pgp.net

If you get the following error when you try to add the key:

gpg: WARNING: unsafe ownership on configuration file `/home/user/.gnupg/gpg.conf' 

Run this command in Konsole: chown -R root:root /home/user/.gnupg/


Recommended sources | FAQ | Pagina_principale]

Personal tools