Every now and then in ubuntu, you might get this error while updating package with apt:
$sudoapt update...Err:6 https://apt.kitware.com/ubuntu bionic InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 291F9FF6FD385783
This might be several causes of this issue. The GPG signature server could have been temporarily down so you can re-force it simply by running:
sudoapt-key adv--keyserver keyserver.ubuntu.com--recv-keys 291F9FF6FD385783
Using the same key that is normally causing you trouble (in this instance291F9FF6FD385783)
However recently I noticed that in some environment behind a strict proxy rules, and for example also under WSL in Windows, the access to the keyserver.ubuntu.com is actually blocked and cannot be reached.
This, for example, will give you the following error:
$sudoapt-key adv--keyserver keyserver.ubuntu.com--recv-keys 291F9FF6FD385783Executing: /tmp/apt-key-gpghome.nR1O15nnkM/gpg.1.sh--keyserver keyserver.ubuntu.com--recv-keys 291F9FF6FD385783gpg: keyserver receive failed: Server indicated a failure
I just discovered that you can use the port 80 for this. So, it is enough to just for something like:
sudoapt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 291F9FF6FD385783Executing: /tmp/apt-key-gpghome.prdsQcWrls/gpg.1.sh--keyserver hkp://keyserver.ubuntu.com:80--recv 291F9FF6FD385783gpg: key A8E5EF3A02600268: public key"Kitware Apt Archive Automatic Signing Key (2020) <debian@kitware.com>" importedgpg: Total number processed: 1gpg: imported: 1Reading package lists... DoneBuilding dependency treeReading state information... Done
And puff the trick is done.
P.S. ... yes use this kitware ppa to have always the latest cmake version available in ubuntu. I highly recommend it.
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse