Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnupg error when merging binaries
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Wed Jan 24, 2024 6:40 am    Post subject: gnupg error when merging binaries Reply with quote

Whenever I attempt to emerge a binary I get this:
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': No such file or directory

Is there some extra setup I need to do? gnupg is installed. Source builds still work.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Wed Jan 24, 2024 7:25 am    Post subject: Reply with quote

Please share the command you used and the output in full.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Wed Jan 24, 2024 8:28 pm    Post subject: Reply with quote

cat /etc/portage/binrepos.conf/gentoobinhost.comf
[binhost]
priority = 9999
sync-uri = https://mirror.leaseweb.com/gentoo/releases/amd64/binpackages/17.1/x86-64

emerge -guDN world --keep-going

eric@crab ~ $ sudo cat /var/tmp/portage/dev-libs/zziplib-0.13.72-r4/temp/build.log
Password:
--2024-01-23 22:00:14-- https://mirror.leaseweb.com/gentoo/releases/amd64/binpackages/17.1/x86-64/dev-libs/zziplib/zziplib-0.13.72-r4-1.gpkg.tar
Resolving mirror.leaseweb.com... 209.58.135.187
Connecting to mirror.leaseweb.com|209.58.135.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163840 (160K) [application/octet-stream]
Saving to: ‘/usr/portage/packages/dev-libs/zziplib-0.13.72-r4.gpkg.tar.partial’

0K .......... .......... .......... .......... .......... 31% 2.28M 0s
50K .......... .......... .......... .......... .......... 62% 2.39M 0s
100K .......... .......... .......... .......... .......... 93% 45.1M 0s
150K .......... 100% 205M=0.04s

2024-01-23 22:00:14 (3.64 MB/s) - ‘/usr/portage/packages/dev-libs/zziplib-0.13.72-r4.gpkg.tar.partial’ saved [163840/163840]

* zziplib-0.13.72-r4.gpkg.tar MD5 SHA1 size ;-) ... [ ok ]
!!!
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': No such file or directory
[GNUPG:] ERROR add_keyblock_resource 33587281
[GNUPG:] PLAINTEXT 74 0
[GNUPG:] NEWSIG
gpg: Signature made Tue 23 Jan 2024 04:21:59 AM PST
gpg: using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1706012519 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory
!!! Invalid binary package: '/usr/portage/packages/dev-libs/zziplib-0.13.72-r4.gpkg.tar.partial', GPG verify failed
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1716
Location: Germany

PostPosted: Thu Jan 25, 2024 8:14 am    Post subject: Reply with quote

As which user do you run emerge?
Try switching to root and avoid sudo.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
kuraga
n00b
n00b


Joined: 07 Nov 2017
Posts: 9

PostPosted: Thu Jan 25, 2024 4:03 pm    Post subject: Reply with quote

Ha! The same.

Code:
root # emerge -vuDNg @world
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-devel/gcc-13.2.1_p20240113-r1
--2024-01-25 21:58:19--  https://mirror.yandex.ru/gentoo-distfiles/releases/amd64/binpackages/17.1/x86-64/sys-devel/gcc/gcc-13.2.1_p20240113-r1-1.gpkg.tar
Resolving mirror.yandex.ru... 2a02:6b8::183, 213.180.204.183
Connecting to mirror.yandex.ru|2a02:6b8::183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69488640 (66M) [application/octet-stream]
Saving to: ‘/var/cache/binpkgs/sys-devel/gcc/gcc-13.2.1_p20240113-r1-5.gpkg.tar.partial’

/var/cache/binpkgs/sys-devel/gcc/gcc-13.2.1_p20240113-r1-5. 100%[========================================================================================================================================>]  66.27M  43.6MB/s    in 1.5s   

2024-01-25 21:58:20 (43.6 MB/s) - ‘/var/cache/binpkgs/sys-devel/gcc/gcc-13.2.1_p20240113-r1-5.gpkg.tar.partial’ saved [69488640/69488640]

!!!
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': No such file or directory
[GNUPG:] ERROR add_keyblock_resource 33587281
[GNUPG:] PLAINTEXT 74 0
[GNUPG:] NEWSIG
gpg: Signature made Tue Jan 23 15:21:55 2024 MSK
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1706012515 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory
!!! Invalid binary package: '/var/cache/binpkgs/sys-devel/gcc/gcc-13.2.1_p20240113-r1-5.gpkg.tar.partial', GPG verify failed
 * Binary package is not usable
>>> Failed to emerge sys-devel/gcc-13.2.1_p20240113-r1

 * Messages for package sys-devel/gcc-13.2.1_p20240113-r1:

 * Binary package is not usable
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Thu Jan 25, 2024 4:21 pm    Post subject: Reply with quote

Did you run getuto? If that doesn't help, move away /etc/portage/gnupg and run it again.
Back to top
View user's profile Send private message
kuraga
n00b
n00b


Joined: 07 Nov 2017
Posts: 9

PostPosted: Thu Jan 25, 2024 5:07 pm    Post subject: Reply with quote

sam_ wrote:
Did you run getuto? If that doesn't help, move away /etc/portage/gnupg and run it again.


It helped! Thanks.

P.S. Should we add this to The Handbook?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Thu Jan 25, 2024 5:17 pm    Post subject: Reply with quote

It's already mentioned at https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart#Troubleshooting, but I suppose https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Optional:_Adding_a_binary_package_host could maybe be updated. I suspect this will only happen on existing installs though, rather than new ones, so it's not necessarily a great fit for the handbook.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Thu Jan 25, 2024 5:18 pm    Post subject: Reply with quote

We don't know if the users had binpkg-request-signature on, or if they already had a /etc/portage/gnupg from an old ::gentoo verification method.
Back to top
View user's profile Send private message
nikodll
n00b
n00b


Joined: 26 May 2004
Posts: 19

PostPosted: Tue Sep 10, 2024 5:35 pm    Post subject: Reply with quote

sam_ wrote:
I suspect this will only happen on existing installs though, rather than new ones, so it's not necessarily a great fit for the handbook.

Not so sure about that. I am installing gentoo from scratch using today's "Stage 3 desktop profile | openrc" and immediately have hit this issue.
_________________
Gentoo people
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Tue Sep 10, 2024 7:06 pm    Post subject: Reply with quote

I think we added it to the handbook since then?
Back to top
View user's profile Send private message
nikodll
n00b
n00b


Joined: 26 May 2004
Posts: 19

PostPosted: Tue Sep 10, 2024 9:09 pm    Post subject: Reply with quote

sam_ wrote:
I think we added it to the handbook since then?

Yes, it is in the handbook, I just have found it after I found the solution on this forum and had the impression that you didn't expect it needs to be applied for the new installs :roll:
_________________
Gentoo people
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Tue Sep 10, 2024 11:45 pm    Post subject: Reply with quote

I wrote that back in January when the binhost was very new. Things got updated since then..

In any case, I'll think about how to avoid the need to run it on first install.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum