You are not logged in.

#1 2023-05-14 20:57:49

sknot
Member
Registered: 2023-05-07
Posts: 9

Arch has not been updated in a while, all signatures are corrupt.

Hi, As the title suggests, i have not updated Arch in a while, so when i run

 sudo pacman -Syu 

I have exactly 788 packages to update, and it obviously returns with

 error: kjobwidgets: signature from "Antonio Rojas <arojas@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/kjobwidgets-5.105.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). 

for a lot of things and at the end it outputs:

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

Now i found a few solutions online, here is what i followed:
First i updated archlinux-keyring, then i refreshed said keyring. I then got an error about not being able to refresh packages, which i solved by removing the DBlock:

 rm /var/lib/pacman/db.lck 

after doing all these my problem is still not solved when in theory it should be.

Offline

#2 2023-05-14 21:26:29

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

Re: Arch has not been updated in a while, all signatures are corrupt.

https://wiki.archlinux.org/title/Pacman … ure_errors is not https://wiki.archlinux.org/title/Pacman … nown_trust

I then got an error about not being able to refresh packages

Don't paraphase. An existing db.lck indicates that either there's another pacman instance running or pacman was interrupted (killed) in which case it's not unlikely that there's also one or more genuinely corrupted files in the cache.

No sure how you would have re-installed archlinux-keyring then, though.

Offline

Board footer

Powered by FluxBB