You are not logged in.

#1 2011-11-05 02:18:02

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 848

PGP key import sometimes fails

This is a log of an update I did just now (syu equals sudo pacman -Syu):

~ >>> syu
:: Synchronizing package databases...
 testing is up to date
 extra is up to date
 core is up to date
 community-testing is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): db-5.2.36-2  dialog-1.1_20111020-1  gdbm-1.8.3-9  keyutils-1.5.2-2  krb5-1.9.2-1  module-init-tools-3.16-2
             vi-1:050325-2  wpa_supplicant-0.7.3-4

Total Download Size:    2.99 MiB
Total Installed Size:   22.72 MiB
Net Upgrade Size:       0.21 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from testing...
 db-5.2.36-2-x86_64                                  1111.1 KiB   724K/s 00:02 [############################################] 100%
 dialog-1.1_20111020-1-x86_64                         161.7 KiB   887K/s 00:00 [############################################] 100%
 gdbm-1.8.3-9-x86_64                                   35.2 KiB   984K/s 00:00 [############################################] 100%
 keyutils-1.5.2-2-x86_64                               54.1 KiB   940K/s 00:00 [############################################] 100%
 krb5-1.9.2-1-x86_64                                  946.4 KiB   919K/s 00:01 [############################################] 100%
 module-init-tools-3.16-2-x86_64                      363.8 KiB   921K/s 00:00 [############################################] 100%
 vi-1:050325-2-x86_64                                 141.2 KiB   937K/s 00:00 [############################################] 100%
 wpa_supplicant-0.7.3-4-x86_64                        248.1 KiB   931K/s 00:00 [############################################] 100%
(8/8) checking package integrity                                               [############################################] 100%
error: module-init-tools: key "1EB2638FF56C0C53" is unknown
:: Import PGP key F56C0C53, "Dave Reisner <d@falconindy.com>", created 2011-06-25? [Y/n] y
error: key "Dave Reisner <d@falconindy.com>" could not be imported
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
~ >>> syu
:: Synchronizing package databases...
 testing is up to date
 extra is up to date
 core is up to date
 community-testing is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): db-5.2.36-2  dialog-1.1_20111020-1  gdbm-1.8.3-9  keyutils-1.5.2-2  krb5-1.9.2-1  module-init-tools-3.16-2
             vi-1:050325-2  wpa_supplicant-0.7.3-4

Total Installed Size:   22.72 MiB
Net Upgrade Size:       0.21 MiB

Proceed with installation? [Y/n] y
(8/8) checking package integrity                                               [############################################] 100%
error: module-init-tools: key "1EB2638FF56C0C53" is unknown
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
~ >>> syu
:: Synchronizing package databases...
 testing is up to date
 extra is up to date
 core is up to date
 community-testing is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): db-5.2.36-2  dialog-1.1_20111020-1  gdbm-1.8.3-9  keyutils-1.5.2-2  krb5-1.9.2-1  module-init-tools-3.16-2
             vi-1:050325-2  wpa_supplicant-0.7.3-4

Total Installed Size:   22.72 MiB
Net Upgrade Size:       0.21 MiB

Proceed with installation? [Y/n] y
(8/8) checking package integrity                                               [############################################] 100%
error: module-init-tools: key "1EB2638FF56C0C53" is unknown
:: Import PGP key F56C0C53, "Dave Reisner <d@falconindy.com>", created 2011-06-25? [Y/n] y
error: key "Dave Reisner <d@falconindy.com>" could not be imported
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
~ >>> syu
:: Synchronizing package databases...
 testing is up to date
 extra is up to date
 core is up to date
 community-testing is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (8): db-5.2.36-2  dialog-1.1_20111020-1  gdbm-1.8.3-9  keyutils-1.5.2-2  krb5-1.9.2-1  module-init-tools-3.16-2
             vi-1:050325-2  wpa_supplicant-0.7.3-4

Total Installed Size:   22.72 MiB
Net Upgrade Size:       0.21 MiB

Proceed with installation? [Y/n] y
(8/8) checking package integrity                                               [############################################] 100%
error: module-init-tools: key "1EB2638FF56C0C53" is unknown
:: Import PGP key F56C0C53, "Dave Reisner <d@falconindy.com>", created 2011-06-25? [Y/n] y
(8/8) checking package integrity                                               [############################################] 100%
(8/8) loading package files                                                    [############################################] 100%
(8/8) checking for file conflicts                                              [############################################] 100%
(1/8) upgrading db                                                             [############################################] 100%
(2/8) upgrading dialog                                                         [############################################] 100%
(3/8) upgrading gdbm                                                           [############################################] 100%
(4/8) upgrading keyutils                                                       [############################################] 100%
(5/8) upgrading krb5                                                           [############################################] 100%
(6/8) upgrading module-init-tools                                              [############################################] 100%
warning: /etc/modprobe.d/modprobe.conf installed as /etc/modprobe.d/modprobe.conf.pacnew
(7/8) upgrading vi                                                             [############################################] 100%
(8/8) upgrading wpa_supplicant                                                 [############################################] 100%

As you can see, PGP key import sometimes fails with message:

error: key "Dave Reisner <d@falconindy.com>" could not be imported

and after a few tries it is successful. What could be the problem?
Deleting /etc/pacman.d/gnupg/* and doing pacman-key --init again didn't help.

P.S. I should mention that I think this started to happen when I recreated a user (because /home/user/ folder got accidentally deleted).

Last edited by karabaja4 (2011-11-05 02:30:29)


pie!

Offline

#2 2011-11-05 03:30:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: PGP key import sometimes fails

I've had a similar situation once or twice, so it may have nothing to do with your accidental /home/user directory removal. It started happening 2 or 3 days ago.

Offline

#3 2011-11-05 03:57:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: PGP key import sometimes fails

I've no idea why you suspect this to be related to removing your user's $HOME when pacman is run as root here. More likely it has to do with the keyserver sucking. hkp://keys.gnupg.net is a round robin resolver, so its possible you get a bad server.

Offline

#4 2011-11-05 13:56:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: PGP key import sometimes fails

Just got

error: jshon: key "396E3E25BAB142C1" is unknown
:: Import PGP key BAB142C1, "Kyle Keen <keenerd@gmail.com>", created 2011-02-03? [Y/n] 
error: key "Kyle Keen <keenerd@gmail.com>" could not be imported
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Running pacman again did the trick.

Offline

#5 2011-11-05 15:07:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PGP key import sometimes fails

Useful relevant info on the wiki's pacman-key page.

Offline

#6 2011-11-05 15:28:10

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,273

Re: PGP key import sometimes fails

Moving to [testing] Repo Forum.


To know or not to know ...
... the questions remain forever.

Offline

#7 2011-11-06 11:54:27

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 297

Re: PGP key import sometimes fails

Even when the key import seems to fail the next try accepts it without a second attempt to import it again. So it seems the key is imported into the keyring but pacman fails to recognize it at first.

FWIW I have read the wiki and put "SigLevel = Optional TrustAll" in pacman.conf.

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#8 2011-11-06 18:13:36

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: PGP key import sometimes fails

same error here:

Objetivos (3): virtualbox-additions-4.1.6-1  virtualbox-archlinux-additions-4.1.6-1  virtualbox-archlinux-modules-4.1.6-1

(3/3) verificando la integridad de los paquetes                                                                                                [---------------------------------------------------------------------------------------] 100%
error: virtualbox-archlinux-additions: signature from "Ionut Biru <ibiru@archlinux.org>" is invalid
error: error al realizar la transacción (paquete no válido o dañado (firma PGP))
Ocurrieron errores, no se actualizaron paquetes

i test hkp://pgp.mit.edu and hkp://keys.gnupg.net on gpg.conf. same error

Last edited by sl1pkn07 (2011-11-06 18:14:30)

Offline

#9 2011-11-06 18:16:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: PGP key import sometimes fails

sl1pkn07 wrote:

same error here:

Objetivos (3): virtualbox-additions-4.1.6-1  virtualbox-archlinux-additions-4.1.6-1  virtualbox-archlinux-modules-4.1.6-1

(3/3) verificando la integridad de los paquetes                                                                                                [---------------------------------------------------------------------------------------] 100%
error: virtualbox-archlinux-additions: signature from "Ionut Biru <ibiru@archlinux.org>" is invalid
error: error al realizar la transacción (paquete no válido o dañado (firma PGP))
Ocurrieron errores, no se actualizaron paquetes

i test hkp://pgp.mit.edu and hkp://keys.gnupg.net on gpg.conf. same error

Run

LC_ALL=C <command>

to get output in English.
If you enabled C locale, it should work.


Have you tried it a couple times? Do you have

SigLevel = Optional TrustAll

in pacman.conf?

Offline

#10 2011-11-06 18:58:40

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: PGP key import sometimes fails

yes

have in pacman.conf

output with LANG=C

resolving dependencies...
looking for inter-conflicts...

Targets (3): virtualbox-additions-4.1.6-1  virtualbox-archlinux-additions-4.1.6-1  virtualbox-archlinux-modules-4.1.6-1

Total Installed Size:   49.03 MiB
Net Upgrade Size:       0.05 MiB

Proceed with installation? [Y/n] y
(3/3) checking package integrity                                                                                                               [---------------------------------------------------------------------------------------] 100%
error: virtualbox-archlinux-additions: signature from "Ionut Biru <ibiru@archlinux.org>" is invalid
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Last edited by sl1pkn07 (2011-11-06 19:03:02)

Offline

#11 2011-11-06 19:07:28

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: PGP key import sometimes fails

is that on i686 or x86_64?


Give what you have. To someone, it may be better than you dare to think.
Blog

Offline

#12 2011-11-06 19:09:16

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: PGP key import sometimes fails

WOW. i clean cache 5 times, 5, and now update these packages hmm

i know nothing hmm

EDIT=

Wonder, x86_64

Last edited by sl1pkn07 (2011-11-06 19:10:08)

Offline

#13 2011-11-06 19:13:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: PGP key import sometimes fails

I'm on 32-bit And I have no problems:

[karol@black test]$ pacman -S virtualbox-archlinux-additions
resolving dependencies...
looking for inter-conflicts...

Targets (2):

Name                            Old Version  New Version  Net Change    Download Size

virtualbox-archlinux-modules                 4.1.6-1      0,12 MiB           0,11 MiB
virtualbox-archlinux-additions               4.1.6-1      5,78 MiB           0,88 MiB

Total Download Size:    0,99 MiB
Total Installed Size:   5,90 MiB

Proceed with installation? [Y/n] 
:: Retrieving packages from community-testing...
 virtualbox-archlinux-module...   108,0 KiB   343K/s 00:00 [################################]  10%
 virtualbox-archlinux-additi...  1011,1 KiB   552K/s 00:02 [################################] 100%
(2/2) checking package integrity                           [################################] 100%
(2/2) loading package files                                [################################] 100%
(2/2) checking for file conflicts                          [################################] 100%
(2/2) checking available disk space                        [################################] 100%
(1/2) installing virtualbox-archlinux-modules              [################################] 100%
===> You may want to load vboxguest, vboxsf and vboxvideo
(2/2) installing virtualbox-archlinux-additions            [################################] 100%

Offline

#14 2011-11-06 19:13:47

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: PGP key import sometimes fails

pfff, why did you cleaned the cache. now we lost a potential bug sad


Give what you have. To someone, it may be better than you dare to think.
Blog

Offline

#15 2011-11-06 19:16:25

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: PGP key import sometimes fails

hmm

I have supposed ISP trolling me .... (corrupt download)

(sorry my english)

Last edited by sl1pkn07 (2011-11-06 19:18:57)

Offline

Board footer

Powered by FluxBB