You are not logged in.
Pages: 1
Topic closed
Hi,
I have been trying to run
sudo pacman -Syu for a while but I keep getting corrupted packages.
I will get this message to import a gpg key.
Import PGP key 76A5EF9054449A5C, "Pierre Schmitz <pierre@archlinux.org>"?When I agree I get this error
error: db5.3: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/db5.3-5.3.28-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jack2: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jack2-1.9.21-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libical: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libical-3.0.16-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: binutils: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/binutils-2.39-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: db: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/db-6.2.32-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: fwupd: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/fwupd-1.8.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: perl: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-5.36.0-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: pcsclite: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/pcsclite-1.9.9-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libvirt: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libvirt-1:8.10.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libvirt-python: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libvirt-python-1:8.10.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: python-rich: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/python-rich-13.0.1-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.I followed this thread to try and refresh my GPG key but that didn't work.
Last edited by Bobbins228 (2023-01-14 15:55:12)
Offline
pacman -Sy archlinux-keyring && pacman -Syuand make sure you use good mirrors with high completion and a low score: https://archlinux.org/mirrors/status/#successful
If the error doesn't change actually remove the mentioned packages from the cache manually and retry
Last edited by V1del (2023-01-14 14:43:01)
Online
That worked thanks!
Offline
in case that doesn't fix it for you, clean all the keys and reinit them from the package data:
rm -rf /etc/pacman.d/gnupg/*
pacman-key --init
pacman-key --populate archlinux(as root, using su, sudo or doas, etc)
Now, if someone smarter than me can explain why that happens... because i can't ![]()
Offline
The OP has not been back since April 3, and this thread is marked solved. Closing.
Offline
Pages: 1
Topic closed