You are not logged in.
Pages: 1
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
Post the whole pacman output and search the forums first, maybe there's already a similar thread or two.
Offline
https://wiki.archlinux.org/index.php/Pacman-key
http://allanmcrae.com/2011/12/pacman-pa … rch-linux/
The second link explains it best.
Tim
Offline
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
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.pacnewand 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
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
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.eduI 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
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.pacnewWhile 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 = NeverAs 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
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
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
Pages: 1