You are not logged in.

#1 2022-09-03 01:28:44

ralof
Member
Registered: 2022-09-03
Posts: 2

Pacman upgrade fails due to corrupted .pkg.tar.zst files

Posting this here as this is my firest question in the archlinux forum and I am not entirely sure where it would go.

When doing 

# pacman -Syu

it fails with several of the downloaded package files (e.g.

/var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst

) ending in an error:

error: libcap: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

Pressing enter or entering Y deletes the file.

In no particular order I already tried to (in no particular order)
- clear the cache

# pacman -S --clear --clear

[I do know that I should not hav used the 2nd '--clear' because that was just unnecessary...]
- (re-)initialize the key-storage

# pacman-key --init

followed by
- downloading the keys

# pacman-key --populate

- doing several upgrades

# pacman -Syu

Unfortuanately I do not know whether the order of any of these commands would have mattered...
Any help will be greatly appreciated as I am currently unable to upgrade - thank you all in advance!

Offline

#2 2022-09-03 01:33:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Pacman upgrade fails due to corrupted .pkg.tar.zst files

Update archlinux-keyring first.

Offline

#3 2022-09-03 01:56:51

ralof
Member
Registered: 2022-09-03
Posts: 2

Re: Pacman upgrade fails due to corrupted .pkg.tar.zst files

Thank you - updating the package archlinux-keyring

# pacman -S archlinux-keyring

and doing

# pacman -Syu

right afterwards fixed everything!
There are no update errors anymore.

Offline

Board footer

Powered by FluxBB