You are not logged in.

#1 2015-06-01 17:32:54

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

error: key - could not be imported

I'm trying to update my arch install from 2013 and am getting some errors after running;

pacman -Syu...

:: Import PGP key 4096R/, "Anatol Pomozov <anatol.pomozov@gmail.com>", created: 2014-02-03? [Y/n] y
error: key "Anatol Pomozov <anatol.pomozov@gmail.com>" could not be imported
:: Import PGP key 4096R/, "Antonio Rojas <arojas@us.es>", created: 2014-10-21? [Y/n] y
error: key "Antonio Rojas <arojas@us.es>" could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

( code tags added smile )

Last edited by atomicpookavirus (2015-06-01 18:11:06)

Offline

#2 2015-06-01 17:50:11

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: error: key - could not be imported

Hey there, please use code tags to post output.

2013, huh? I believe you're facing one of those issues:

1. gpg migration to v2, in this case you should recreate your pacman gpg key database (see the manpage of pacman-key)
2. those keys are missing, so you can add them manually (pacman-key -r then pacman-key --lsign-key)

In either case, I remember those are documented elsewhere (older forum posts and Wiki). Try 1 first to see if it helps in any way.

Offline

#3 2015-06-01 18:10:19

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

Re: error: key - could not be imported

Is there any reason why not install anew?
There are other issues from mid-2013 that can cause a problem: https://www.archlinux.org/news/binaries … ervention/

Offline

#4 2015-06-01 18:14:03

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

Re: error: key - could not be imported

No reason, except to possibly save some time in configuring. Though, if enough things break, that doesn't matter.
I'm already prepping a USB drive with the latest arch to install on my desktop.

Offline

#5 2015-06-01 18:23:42

atomicpookavirus
Member
Registered: 2009-06-28
Posts: 53

Re: error: key - could not be imported

thiagowfx wrote:

1. gpg migration to v2, in this case you should recreate your pacman gpg key database (see the manpage of pacman-key)

I don't see a reference to recreate database. The man page is rather sparse. Perhaps either --import or --updatedb?

Is the evo/lution installer a good way to save time installing arch? I may give that a try too.

Offline

#6 2015-06-01 18:32:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: error: key - could not be imported

atomicpookavirus wrote:

Is the evo/lution installer a good way to save time installing arch? I may give that a try too.

No. It is not Arch so not supported here.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-06-01 18:33:51

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: error: key - could not be imported

atomicpookavirus wrote:

I don't see a reference to recreate database. The man page is rather sparse. Perhaps either --import or --updatedb?

Is the evo/lution installer a good way to save time installing arch? I may give that a try too.

1. Remove your GPG directory (probably /etc/pacman.d/gnupg, you can find out precisely which one in /etc/pacman.conf (the GPGDir setting) -- backup it first in case something goes wrong
2. pacman-key --init
3. pacman-key --populate archlinux

You'll then probably see errors such as

error: infinality-bundle: key "AE6866C7962DDE58" is unknown

after doing that -- in the case you use custom repos. Good news, at least. You can solve it by manually adding those keys (with what I said in my second point in my first post).

Last edited by thiagowfx (2015-06-01 18:34:16)

Offline

#8 2015-07-19 20:35:20

Archimaredes
Member
Registered: 2013-01-23
Posts: 60

Re: error: key - could not be imported

Hiya, just had this same issue, fixed it by first doing:

# pacman -Sy archlinux-keyring

Then updating everything else:

# pacman -Su

The key wasn't importing because the keyring package was out of date.

Offline

#9 2015-08-10 15:49:16

kejingzhang
Member
Registered: 2013-09-25
Posts: 8

Re: error: key - could not be imported

Archimaredes wrote:

Hiya, just had this same issue, fixed it by first doing:

# pacman -Sy archlinux-keyring

Then updating everything else:

# pacman -Su

The key wasn't importing because the keyring package was out of date.

It worked!

Offline

#10 2015-08-10 20:38:19

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: error: key - could not be imported

You guys may want to find out why you have out of date packages. Do you "pacman -Syu" regularly?


Matt

"It is very difficult to educate the educated."

Offline

#11 2015-08-11 03:27:47

severach
Member
Registered: 2015-05-23
Posts: 192

Re: error: key - could not be imported

The easy way is to boot the new ArchISO and perform the upgrade with "pacman --root". Don't use arch-chroot which will be the same old version you have now.

Last edited by severach (2015-08-11 03:29:33)

Offline

#12 2015-08-12 13:13:46

Texas
Member
From: Dallas, Texas
Registered: 2010-09-10
Posts: 131

Re: error: key - could not be imported

karol wrote:

Is there any reason why not install anew?
There are other issues from mid-2013 that can cause a problem: https://www.archlinux.org/news/binaries … ervention/

I had this issue, got it fixed.  Then more issues popped.  I have not used this machine for 14 months.  I guess I will re-install.  I love Arch... but it is a "use it or lose it" distro.

Offline

#13 2016-07-24 21:11:21

janpansa
Member
From: South Africa
Registered: 2015-02-23
Posts: 43

Re: error: key - could not be imported

Archimaredes wrote:

Hiya, just had this same issue, fixed it by first doing:

# pacman -Sy archlinux-keyring

Then updating everything else:

# pacman -Su

The key wasn't importing because the keyring package was out of date.

You sir are a gentleman and a scholar !

Offline

#14 2017-06-07 21:51:43

Skyalmian
Member
Registered: 2009-06-28
Posts: 121

Re: error: key - could not be imported

/updating archived / unused HDD since September 2014. After an hour of chewing through dependency conflicts and outdated keyring settings / stuff via searches, pacman -Su --force ('force' apparently needed) is updating 984.

Thank you for all the help / this thread. (y)

Offline

#15 2017-06-07 22:01:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: error: key - could not be imported

Don't do that; using --force indiscriminately is a bad idea. So is necrobumping: https://wiki.archlinux.org/index.php/Co … bumping.22



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB