Jump to content

apt-get update fails with public key errors


flot010
 Share

Go to solution Solved by Igor,

Recommended Posts

I can't seem to get apt-get update to work, this is a fresh install anyone know the fix? 

 

mango@nezha:~$ sudo apt-get update
Hit:3 http://ports.ubuntu.com jammy InRelease
Hit:4 http://ports.ubuntu.com jammy-security InRelease
Hit:5 http://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu jammy InRelease
Hit:6 http://ports.ubuntu.com jammy-updates InRelease
Hit:7 http://ports.ubuntu.com jammy-backports InRelease
Hit:1 https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease
Hit:2 https://cli.github.com/packages stable InRelease
Err:2 https://cli.github.com/packages stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease' doesn't support architecture 'riscv64'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: Failed to fetch http://cli.github.com/packages/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: Some index files failed to download. They have been ignored, or old ones used instead.


 

Link to comment
Share on other sites

Open source development is fun. Join Armbian Linux development team today!

Hi,

 

Talk to the owner of the repo to provide the necessary key. No idea who is that though, certainly not us. Never saw those addresses. Therefore most likely not an official Armbian image but some 3rd party work.

Link to comment
Share on other sites

Can you verify that the file /usr/share/keyrings/githubcli.gpg is there?

Link to comment
Share on other sites

  • Solution
6 hours ago, flot010 said:

I can't seem to get apt-get update to work, this is a fresh install anyone know the fix? 

 

No Linux is having full control over its component made by thousands of people. This particular problem was caused by this https://github.com/cli/cli/issues/6175 where you can find instructions how to fix a problem you have. I already fixed the key, so future releases will have this fixed https://github.com/armbian/build/pull/4163

Link to comment
Share on other sites

I'm using Odroid-C2 and using Armbian 22.08 Jammy XFCE build (Armbian_22.08.1_Odroidc2_jammy_current_5.10.139_xfce_desktop.img) from https://www.armbian.com/odroid-c2/.

 

When updating the repository before an upgrade, I get a signature verification issue.

 

$ sudo apt-get update
Hit:4 http://deb.volian.org/volian scar InRelease
Hit:6 http://ports.ubuntu.com jammy InRelease
Get:1 https://cli.github.com/packages stable InRelease [3,917 B]
Hit:7 http://ppa.launchpadcontent.net/saiarcot895/chromium-beta/ubuntu jammy InRelease
Hit:8 http://ports.ubuntu.com jammy-security InRelease
Hit:2 http://armbian.chi.auroradev.org/apt jammy InRelease
Hit:3 https://box64.debian.ryanfortner.dev/debian ./ InRelease
Hit:9 http://ports.ubuntu.com jammy-updates InRelease
Hit:10 http://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Hit:5 https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease
Hit:11 http://ports.ubuntu.com jammy-backports InRelease
Hit:12 http://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu jammy InRelease
Err:1 https://cli.github.com/packages stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: Failed to fetch http://cli.github.com/packages/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

Link to comment
Share on other sites

  • Igor pinned this topic

I noticed the same on a fresh image on the Station P1.
So the fix from above was :
 

sudo apt-key del C99B11DEB97541F0 && sudo rm /etc/apt/sources.list.d/githubcli.list 

But
 

sudo rm /etc/apt/sources.list.d/githubcli.list 

I think this should be sufficient since it ain't doing the apt-key thing.
There was a small mistake in the original source. github-cli.list vs githubcli.list

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...