Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

tetractius
tetractius

Posted on

     

TetraQuicky07: Ubuntu apt-get key errors

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)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Constantly trying new thing, coding just because, simply curious
  • Location
    London
  • Work
    Principal Software Engineer at Mirriad
  • Joined

More fromtetractius

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp