Skip to content

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?

6 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
6 · 100% up
Kind
Text
ID
pbbau

Author

30
posts
174
comments
3
media
View profile

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

SigLevel = "Optional TrustedOnly"

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")

7 points

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.

2 points

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.

3 points

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.

1 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.