Skip to content

pacman -Syu fails: invalid or corrupted package (PGP signature)

pacman system upgrade fails after checking package integrity with the following error message :

error: libtorrent-rasterbar: signature from "Felix Yan <felixonmars@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/libtorrent-rasterbar-1:1.2.3-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

I tried clearing the cache, refreshing the keys, changing the mirror, made sure my time is in sync, and yet I get the same error. Could someone help me with this?

3 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
f4bmtm

Author

5
posts
5
comments
1
media
View profile

11 comments

Try upgrading just the keyring packages first. The key pacman is looking for may not yet be in your keyring.

2 points

I'm sorry I don't think I understand, did you mean to upgrade the archlinux-keyring package?

1 points

Yes. You need to # pacman -S archlinux-keyring . That should import the new key and allow you to upgrade everything else.

3 points

Had the same problem a few days before. This was the solution.

1 points

Unsure, but Try initializing and repopulating the keyring as per the wiki

pacman-key --init

pacman-key --populate archlinux

Please update your post with the solution when found. Good luck.

2 points

This installed OK on my arch:

$ sha256sum /var/cache/pacman/pkg/libtorrent-rasterbar-1\:1.2.3-2-x86_64.pkg.tar.zst  
db5731d94ac65a966a1d0aba6f335fc8d902bb167ae04624db87ce1fdf790acb  /var/cache/pacman/pkg/libtorrent-rasterbar-1:1.2.3-2-x86_64.pkg.tar.zst

1 points

$ sha256sum /var/cache/pacman/pkg/libtorrent-rasterbar-1\:1.2.3-2-x86_64.pkg.tar.zst

1dc0163e84f3809b8eda903fd49d52fc0641300f05ed7c8fe85202f250b8a237 /var/cache/pacman/pkg/libtorrent-rasterbar-1:1.2.3-2-x86_64.pkg.tar.zst

Seems like I have a different checksum?

1 points

I also see that db57...0acb checksum, same as the other person:

$ sha256sum /var/cache/pacman/pkg/libtorrent-rasterbar-1\:1.2.3-2-x86_64.pkg.tar.zst 
db5731d94ac65a966a1d0aba6f335fc8d902bb167ae04624db87ce1fdf790acb  /var/cache/pacman/pkg/libtorrent-rasterbar-1:1.2.3-2-x86_64.pkg.tar.zst

You mentioned that you wiped your cache contents already, and you changed the mirror. This then means there's corruption happening on your computer? But then I don't understand why it's only this file with the problem. The size is technically one of the larger Arch packages, but it's still just 2.4MB size. I would think if your PC repeatedly produces corruption in just 2.4MB of data, you would have crashing all the time.

1 points

Your downloaded file is broken. Remove the file, reinstall the archlinux-keyring package, and try to install the libtorrent-rasterbar package in separate steps:

# rm /var/cache/pacman/pkg/libtorrent-rasterbar-1\:1.2.3-2-x86_64.pkg.tar.zst

# pacman -Suyy archlinux-keyring

# pacman -Suy libtorrent-rasterbar

Edit: the double y is not a typo.

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.