VSWSL / Arch-WSL

This is an unofficial Arch WSL based on the rootfs of arch docker images with a few packages installed to make things easy.
https://www.microsoft.com/store/apps/9MZNMNKSM73X
MIT License
283 stars 22 forks source link

Cannot update packages #48

Closed AntouanK closed 2 months ago

AntouanK commented 2 months ago

When trying sudo pacman -Syu all the keys fail

...

Total Download Size:      5.26 MiB
Total Installed Size:  7596.74 MiB
Net Upgrade Size:       998.32 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 npm-10.8.3-1-any downloading...
 krb5-1.21.3-1-x86_64 downloading...
 openssh-9.8p1-1-x86_64 downloading...
 zstd-1.5.6-1-x86_64 downloading...
 libdrm-2.4.123-1-x86_64 downloading...
 libbpf-1.4.3-1-x86_64 downloading...
 libedit-20240517_3.1-1-x86_64 downloading...
 libnghttp2-1.63.0-1-x86_64 downloading...
 libpsl-0.21.5-2-x86_64 downloading...
 libvterm-0.3.3-2-x86_64 downloading...
checking keyring...
checking package integrity...
error: zstd: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/zstd-1.5.6-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: krb5: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/krb5-1.21.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: libpsl: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/libpsl-0.21.5-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: libedit: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/libedit-20240517_3.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
...

is there some way to fix this? or do you have to publish a new version?

AntouanK commented 2 months ago

this seems to fix it. not sure though :D

 sudo pacman -Sy --needed archlinux-keyring && sudo pacman -Su