You are not logged in.

#1 2012-01-22 13:09:07

Sidhartha
Member
Registered: 2011-12-03
Posts: 40

[SOLVED] Error: Key is Unknown

Hi All,

Since upgrading to Pacman 4.0+ I seem to be often getting 'Error; key "xxxxxxxx" is unknown' problems and hence the packages won't upgrade.
Doesn't happen all the time. I'd guess 50% of the time.

Any ideas?

Many Thanks

Last edited by Sidhartha (2012-01-23 19:33:51)

Offline

#2 2012-01-22 13:18:19

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

Re: [SOLVED] Error: Key is Unknown

Post the whole pacman output and search the forums first, maybe there's already a similar thread or two.

Offline

#3 2012-01-22 13:19:32

ratcheer
Member
Registered: 2011-10-09
Posts: 924

Re: [SOLVED] Error: Key is Unknown

Offline

#4 2012-01-22 13:55:41

Sidhartha
Member
Registered: 2011-12-03
Posts: 40

Re: [SOLVED] Error: Key is Unknown

Thanks Tim.

Just to be clear, I assume I have to run the following code,

for key in FFF979E7 CDFD6BB0 4C7EA887 6AC6A4C2 824B18E8; do
    pacman-key --recv-keys $key
    pacman-key --lsign-key $key
    printf 'trust\n3\nquit\n' | gpg --homedir /etc/pacman.d/gnupg/ \
        --no-permission-warning --command-fd 0 --edit-key $key
done

as a shell script...?

sh filename.sh?

Thanks

Offline

#5 2012-01-22 14:25:31

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Error: Key is Unknown

If you're not sure about this then I assume you haven't merged .pacnew files, the update to pacman 4.0.1 will automatically disable package signature checking if you properly merged these .pacnew files.

Can you please check if you have the following file:

/etc/pacman.conf.pacnew

and if you do, please have a look at this wiki article:
https://wiki.archlinux.org/index.php/Pa … save_Files


Arch i686 on Phenom X4 | GTX760

Offline

#6 2012-01-22 16:41:09

Sidhartha
Member
Registered: 2011-12-03
Posts: 40

Re: [SOLVED] Error: Key is Unknown

Stefan,

Thank you. You are right. I haven't merged.
I do have an /etc/pacman.conf.new file...

So I assume I now need to merge all lines in my pacman.conf.pacnew file into my pacman.conf file?

I've done a yaourt -C and I have the two files in front of me. Is merging a manual process?

Thanks

Offline

#7 2012-01-22 17:06:07

jgreen1tc
Member
From: St. Louis
Registered: 2011-05-16
Posts: 251

Re: [SOLVED] Error: Key is Unknown

I usually move my old file to backup, then edit the new one so that any changes I have made that are still supported go to the new one. Read the link stefanwilkens posted.

You will probably have additional things to do afterwards to set up package signing if you do want it. Follow the links ratcheer posted.

The only thing that I did that I am not sure is in the links is changing the keyserver in /etc/pacman.d/gnupg/gpg.conf to:

hkp://pgp.mit.edu

I saw this suggestion in a forum post. I'm sure if you did some searching you will find it and see why.

Edit: Changing the keyserver actually is in the wiki. Read away and I'm sure you'll understand. You might not need to do this.

Last edited by jgreen1tc (2012-01-22 17:13:44)

Offline

#8 2012-01-22 17:28:46

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Error: Key is Unknown

Sidhartha wrote:

Stefan,

Thank you. You are right. I haven't merged.
I do have an /etc/pacman.conf.new file...

So I assume I now need to merge all lines in my pacman.conf.pacnew file into my pacman.conf file?

I've done a yaourt -C and I have the two files in front of me. Is merging a manual process?

Thanks

Hey Sidhartha,

You're correct, but you shouldn't simply copy / paste the new file into the old file!

You'll need to look at both files side by side and put the new options in your old file. While you do this, you should make sure that your original config still exists. The hostname you've chosen, the daemons / modules you've set, possible network configuration etc.

The merging of pacnew and pacsave files is something core to Arch Linux, it's very important to understand how to do this.

Pacman will warn you for these situations during installation, like so:

Warning: pacman.conf installed as /etc/pacman.conf.pacnew

While you do this, you'll notice that the new file (pacman.conf.pacnew) has a whole section that configures package signing. You'll also notice that the standard option for this is "Never".

SigLevel = Never

As soon as you have merged your pacman.conf and pacman.conf.pacnew, you'll notice that you not longer receive errors during installation.

You're getting these errors now because the new pacman is reading the old pacman configuration file, this old file has no options for package signing and so pacman assumes it should be on.

Last edited by stefanwilkens (2012-01-22 17:30:07)


Arch i686 on Phenom X4 | GTX760

Offline

#9 2012-01-22 19:42:25

Sidhartha
Member
Registered: 2011-12-03
Posts: 40

Re: [SOLVED] Error: Key is Unknown

Thanks guys. That sorted it. SOLVED.

Sadly a new issue has arisen (not connected to this I don't think). Time for a new post....!

Offline

#10 2012-01-22 19:44:33

ratcheer
Member
Registered: 2011-10-09
Posts: 924

Re: [SOLVED] Error: Key is Unknown

And back to what you asked in post #4, I just cut and pasted the code into a root terminal to run it. If you copy it to a script, it should be run as root or under sudo.

Tim

Offline

Board footer

Powered by FluxBB