Can't install AUR packages after pacman 4 upgrade...
Did I miss something that I have to do? I can install everything else just fine, and I've upgraded all the base/community packages.
For everything I get: error: 'packer-20120204-1-any.pkg.tar.xz': invalid or corrupted package (PGP signature)
My SigLevel is Required DatabaseOptional TrustedOnly ... is that it?
About this post
- Posted
- Archived
- Score
- 6 · 100% up
- Kind
- Text
- ID
- pbbau
6 comments
Yep, it's your siglevel. "Required" means that packages without signature won't be installed.
Either you change the SigLevel or add your (users, you shouldn't build as root) gpg-key to /etc/makepkg.conf and sign every package you build (makepkg will do that automatically). (If you use the latter, you need to trust your key)
For now, since not every package in the repos is signed "Required" doesn't make much sense anyway, so I'd suggest you use
EDIT: Let me explain that a bit, since you don't seem to have understood the SigLevel directive yet.
There are two kinds of things set in SigLevel: When signatures are used/needed and what trust the signature should have.
These are set for two kinds of objects: The packages and the databases (where database is the repository database, i.e. /var/lib/pacman/sync/core.db which is downloaded on "pacman -Sy").
This is set from left to right, so the rightmost setting overrides all others.
SigLevel = "Required DatabaseOptional TrustedOnly" means:
At first, signatures are required for packages and databases.
"DatabaseOptional" overrides this for dbs, meaning signatures on databases are optional; They will be checked if present (and if present and invalid there will be an error)
"TrustedOnly" means only trusted signatures are allowed. Present but untrusted signatures will produce errors.
This could also be written as "Optional PackageRequired TrustedOnly" or "PackageRequired DatabaseOptional TrustedOnly".
If you wish to see how many packages in the repos are signed (to find out when you could use "Required"), use this bash script. (Depends on "bc")
Very much this until all the repository packages are signed. After that I think after building a package it will probably have to be signed with your own key.
There were some patches a while ago to implement some kind of "LocalSigLevel" for use with "pacman -U", so you wouldn't need to sign your own packages.
I'd guess that will appear before everything is signed.
Link.
Thanks for all the info. I'm still trying to wrap my brain around all the new changes, but I'll keep trying. I did get stuff to install though by changing the SigLevel.
or you could just use the /etc/pacman.conf.pacnew file, placed on your box by the upgrade, to replace the old /etc/pacman.conf