You are not logged in.

#1 2014-12-19 21:58:55

ayr0
Member
Registered: 2010-08-12
Posts: 88

[SOLVED] Pacman refuses to upgrade due to missing key

Starting today, I get this error messge when trying to upgrade via pacman

error: key "7A4E76095D8A52E4" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)

Generating a fresh keyring (https://www.archlinux.org/news/gnupg-21 … n-keyring/) doesn't resolve the problem.
Anyone else getting an error similar to this?
Any ideas on resolving the issue?

Last edited by ayr0 (2014-12-19 22:06:18)

Offline

#2 2014-12-19 22:06:06

ayr0
Member
Registered: 2010-08-12
Posts: 88

Re: [SOLVED] Pacman refuses to upgrade due to missing key

Solved by reinstalling archlinux-keyring

Offline

#3 2014-12-21 00:00:02

mélodie
Member
From: France
Registered: 2006-12-31
Posts: 18
Website

Re: [SOLVED] Pacman refuses to upgrade due to missing key

I followed your lead. Thanks, I solved it too! big_smile

Offline

#4 2014-12-23 12:23:07

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 660
Website

Re: [SOLVED] Pacman refuses to upgrade due to missing key

One should follow https://wiki.archlinux.org/index.php/Pa … mport_keys in case reinstalling pacman-keyring wouldn't sufice.

Using unofficial repos? May have a sig-key, which may need to be re-added. https://wiki.archlinux.org/index.php/Un … positories
eg for Graysky's repo-ck: https://bbs.archlinux.org/viewtopic.php … 1#p1485841


Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) & 2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#5 2014-12-27 20:38:46

Doctor Drive
Member
From: Ukraine
Registered: 2010-08-11
Posts: 167
Website

Re: [SOLVED] Pacman refuses to upgrade due to missing key

ayr0 wrote:

Solved by reinstalling archlinux-keyring

Actually it was an upgrade. I guess you should always update archlinux-keyring first. Thanks for pointing it out.

Offline

#6 2015-01-23 22:23:05

ElectricPrism
Member
Registered: 2012-12-07
Posts: 32

Re: [SOLVED] Pacman refuses to upgrade due to missing key

sudo pacman -S archlinux-keyring && sudo pacman -Syu

@ayr0 - Thanks, re-installing archlinux-keyring worked.

Offline

#7 2015-03-08 03:54:20

rajat
Member
Registered: 2013-10-10
Posts: 10

Re: [SOLVED] Pacman refuses to upgrade due to missing key

sudo pacman -S archlinux-keyring && sudo pacman -Syu
Resolved for me as well !!


Linux is easy.. People are Difficult

Offline

#8 2015-03-30 18:10:57

Amunak
Member
From: Czech Republic
Registered: 2010-08-21
Posts: 15

Re: [SOLVED] Pacman refuses to upgrade due to missing key

For future self and possibly others: Check your system clock. I forgot that I removed the CMOS battery so my time reset to ~2002. The keys were obviously invalid at that time, which is why you get the error. I had to not only set the correct time but also reboot, then it worked.

(oh and it would be nice if pacstrap could just casually check time from some internet server and report if it is years off)

Last edited by Amunak (2015-03-30 18:11:47)

Offline

#9 2015-04-02 21:23:56

helix
Member
Registered: 2013-02-17
Posts: 166

Re: [SOLVED] Pacman refuses to upgrade due to missing key

I think the best solution for this case is

pacman -Sy archlinux-keyring
pacman -Su

Some people may say that the first command is a partial upgrade, but archlinux-keyring could be an exception especially considering that a full update follows right after. Why -Sy and not -S? To make sure you have the latest keys.

Offline

#10 2016-03-14 05:13:58

litchiware
Member
Registered: 2015-08-24
Posts: 2

Re: [SOLVED] Pacman refuses to upgrade due to missing key

helix wrote:

I think the best solution for this case is

pacman -Sy archlinux-keyring
pacman -Su

Some people may say that the first command is a partial upgrade, but archlinux-keyring could be an exception especially considering that a full update follows right after. Why -Sy and not -S? To make sure you have the latest keys.

Many thanks, you save my day

Offline

Board footer

Powered by FluxBB