PINE64
PineTab2: How to fix "Package corrupted" error on update [SOLUTION] - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTab (https://forum.pine64.org/forumdisplay.php?fid=140)
+--- Forum: General Discussion on PineTab (https://forum.pine64.org/forumdisplay.php?fid=141)
+--- Thread: PineTab2: How to fix "Package corrupted" error on update [SOLUTION] (/showthread.php?tid=18399)



PineTab2: How to fix "Package corrupted" error on update [SOLUTION] - IPXFong - 06-21-2023

Hey all, I'm more of a Debian/BSD kid so the software update process was a little arcane to me. I'm sure most people here don't need to know this, but I thought I'd write it down to save anyone else like me the trouble of looking it up.

Arch based distros use a package manager called pacman. It's both capable and flexible, but like many such tools, it's requires a bit of setup. If you get the error:
Code:
:: File /var/cache/pacman/pkg/somepackage.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

for every package, your system needs to have its PGP keyring populated. You can do that with the following commands:
Code:
sudo pacman-key --populate
sudo pacman-key --refresh-keys

You should be able to update normally after that.