Skip to content

State of Package Signing

Greetings Arch folks,

Looking to move from Ubuntu to starting Arch from scratch. Never done anything like that before so I am doing some research on Arch. One thing that came up concerns me a little and that is Package Signing from pacman or the lack of. I'm not a developer by any means (sysadmin) but I'm a huge fan of making sure the packages I get are signed and verified.

I have googled around and found some articles but they are typically about 3 or 4 years old. I was wondering what the current state is and how Package Signing has progressed since what seems like a huge controversy that happened a few years ago.

Thanks Folks!

0 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
3a40pg

Author

1
posts
4
comments
0
media
View profile

6 comments

11 points

Man that wiki is super helpful. Should've checked there. I'm learnin' promise!

So what happens if a package is requested that is NOT signed? Does pacman give me any warning?

2 points

pacman.conf's man page covers it. The default pacman.conf has SigLevel = Required DatabaseOptional.

If I understand it right, signatures are required on every pacakges, but not on the database. This is okay, I believe, since I do not think anything wrong could happen if the database is not signed properly. Well, a bad person could in theory feed you an older package version though, but the packages could not be modified from the trusted ones.

EDIT: I overlooked locally installed packages. LocalFileSigLevel = Optional makes them optional for locally installed packages. I did not see anything in pacman's manpage to change this for a certain invocation. This means that a pacman -U $pkgfile would not need to be signed. I do not know the details of package enough to say whether a signed package installed with -U that does not validate would trip up pacman. I think this is mostly done for easier AUR compiling, as otherwise you'd need to sign everything you compile locally.

6 points

If I haven't updated in awhile I usually get something like this when trying to install new packages:

error: PackageName: signature from "User <email@archlinux.org>" is invalid  
error: failed to commit transaction (invalid or corrupted package (PGP signature))  
Errors occured, no packages were upgraded.  

This can also occur if your system clock is off. Basically if something is amiss with the signature the upgrade fails. So in a sense this is a warning. I believe this answers your question, but please excuse my ignorance if not.

Edit: My example comes from the same wiki: https://wiki.archlinux.org/index.php/Pacman-key#Troubleshooting

3 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.