View previous topic :: View next topic |
Author |
Message |
ese002 Apprentice
Joined: 20 Sep 2006 Posts: 153
|
Posted: Wed Jan 24, 2024 6:40 am Post subject: gnupg error when merging binaries |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Wed Jan 24, 2024 7:25 am Post subject: |
|
|
Please share the command you used and the output in full. |
|
Back to top |
|
|
ese002 Apprentice
Joined: 20 Sep 2006 Posts: 153
|
Posted: Wed Jan 24, 2024 8:28 pm Post subject: |
|
|
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 |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1721 Location: Germany
|
|
Back to top |
|
|
kuraga n00b
Joined: 07 Nov 2017 Posts: 9
|
Posted: Thu Jan 25, 2024 4:03 pm Post subject: |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Thu Jan 25, 2024 4:21 pm Post subject: |
|
|
Did you run getuto? If that doesn't help, move away /etc/portage/gnupg and run it again. |
|
Back to top |
|
|
kuraga n00b
Joined: 07 Nov 2017 Posts: 9
|
Posted: Thu Jan 25, 2024 5:07 pm Post subject: |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Thu Jan 25, 2024 5:18 pm Post subject: |
|
|
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 |
|
|
nikodll n00b
Joined: 26 May 2004 Posts: 19
|
Posted: Tue Sep 10, 2024 5:35 pm Post subject: |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Tue Sep 10, 2024 7:06 pm Post subject: |
|
|
I think we added it to the handbook since then? |
|
Back to top |
|
|
nikodll n00b
Joined: 26 May 2004 Posts: 19
|
Posted: Tue Sep 10, 2024 9:09 pm Post subject: |
|
|
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 _________________ Gentoo people |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1949
|
Posted: Tue Sep 10, 2024 11:45 pm Post subject: |
|
|
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 |
|
|
|