Erorrs when installing package or updateing system

i was trying to install vlc player and got this error…

error: libdvbpsi: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/libdvbpsi-1:1.3.3-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

then as suggested somewhere i tried update sudo pacman -Syu and got this error.

error: zlib: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/zlib-1:1.3.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: minizip: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/minizip-1:1.3.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

I dont quite understand what it means and what to do to fix it. Can anyone help me to solve it? thanx

Try this:

sudo pacman -Sy archlinux-keyring

And then update:

sudo pacman -Syu

3 Likes

thanks, seems to work.

what does this magical command do?

sudo pacman -Sy archlinux-keyring

Some signatures may get outdated and no longer correspond to the new ones that packages are signed with. So the command installs/updates Arch Linux PGP keyring first before updating the rest of the packages.

1 Like

You can update your system with one of the following lines:

eos-update
eos-update --aur

They should take care of this signature problem.

The latter is meant for systems that have also AUR packages installed.