You are not logged in.

#1 2022-04-11 04:37:21

cjmurphy
Member
Registered: 2021-08-17
Posts: 5

invalid or corrupted package

# sudo pacman -Syyu

At the end of which I'm getting quite a few of these:

error: vim: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/vim-8.2.4651-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y

And these messages right at the end:

error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

I keep doing `sudo pacman -Syyu` and keep getting the same problem. I tried re-ordering the contents of /etc/pacman.d/mirrorlist but that didn't help. Are these files really corrupted? Where do they keep coming from? How to get out of this situation?

Offline

#2 2022-04-11 06:43:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,696

Re: invalid or corrupted package

Start by not running "-yy", check the manpage about what the second "y" really does and understand that if you're unconditionally using it, you're provoking database corruptions as well as needless load on the mirror.
Then "pacman -S archlinux-keyring" ahead.

Offline

#3 2022-04-11 07:12:48

cjmurphy
Member
Registered: 2021-08-17
Posts: 5

Re: invalid or corrupted package

Thanks @seth. These commands seemed to result in a clean upgrade:

pacman -S archlinux-keyring
sudo pacman -Syu

Offline

#4 2022-04-11 07:30:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,696

Re: invalid or corrupted package

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB