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?
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- f4bmtm
11 comments
Try upgrading just the keyring packages first. The key pacman is looking for may not yet be in your keyring.
I'm sorry I don't think I understand, did you mean to upgrade the archlinux-keyring package?
Yes. You need to # pacman -S archlinux-keyring . That should import the new key and allow you to upgrade everything else.
Had the same problem a few days before. This was the solution.
Unsure, but Try initializing and repopulating the keyring as per the wiki
Please update your post with the solution when found. Good luck.
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
$ 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?
I also see that db57...0acb checksum, same as the other person:
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.
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-rasterbarEdit: the double
yis not a typo.