From bfa12af66a6500b7f05deaf5217315f948f0b9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AD=E5=BC=80=E7=AE=B1?= Date: Sat, 20 May 2023 23:29:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=89=8B=E5=8A=A8=E9=80=89=E9=A2=98][tech]:?= =?UTF-8?q?=2020230520.0=20=E2=AD=90=EF=B8=8F=20Fix=20=E2=80=9Cinvalid=20o?= =?UTF-8?q?r=20corrupted=20package=20(PGP=20signature)=E2=80=9D=20Error=20?= =?UTF-8?q?In=20Arch=20Linux.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ... package (PGP signature)” Error In Arch Linux.md | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 sources/tech/20230520.0 ⭐️ Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux.md diff --git a/sources/tech/20230520.0 ⭐️ Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux.md b/sources/tech/20230520.0 ⭐️ Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux.md new file mode 100644 index 0000000000..293247b487 --- /dev/null +++ b/sources/tech/20230520.0 ⭐️ Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux.md @@ -0,0 +1,61 @@ +[#]: subject: "Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux" +[#]: via: "https://www.debugpoint.com/invalid-corrupted-package-arch/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: " " +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +Fix “invalid or corrupted package (PGP signature)” Error In Arch Linux +====== + +**A simple guide to fix the “invalid or corrupted package” error in Arch Linux.** + +I have a few Arch Linux systems in both physical and VM setup, which I access when needed. After almost two months, when I tried to upgrade the Arch Linux in one of them using `sudo pacman -Syu`, I got hundreds of errors like this: + +![Sample invalid or corrupted package error in Arch Linux][1] + +The problem is when you get the above error, you can not upgrade/update your Arch system. Even if you sync the mirrors or get a faster one. So, if you run `sudo pacman -Syyu`, the error will still be there. This is also problematic since you can’t install any additional packages until this is fixed. + +### Cause + +When you install or upgrade packages on an Arch Linux system, pacman checks the digital signatures of the packages against the keys in the `archlinux-keyring` package. This verification process ensures that the packages you download and install are unmodified and come from trusted sources. + +It contains the public keyring used to [verify the authenticity and integrity of packages][2] and in pacman. The `archlinux-keyring` package is regularly updated by the Arch Linux developers to include new trusted keys and revoke any compromised keys. + +If you have not updated your Arch Linux system for a longer period, then the digital signatures of various packages may mismatch. The changed keys may not match what you have in your system. + +Hence the error. + +### Fix + +To fix “invalid or corrupted package (PGP signature)” error in Arch Linux, you need to install/update the `archlinux-keyring` package from the `Core` repo. Run the following from the terminal: + +``` +sudo pacman -S archlinux-keyring +``` + +After the above command is complete, run the upgrade: + +``` +sudo pacman -Syu +``` + +This will resolve the problem, and you can continue your normal activity in Arch Linux. It’s recommended to always keep the `archlinux-keyring` package up to date to maintain the security and integrity of your Arch Linux system. + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/invalid-corrupted-package-arch/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.debugpoint.com/author/admin1/ +[b]: https://github.com/lkxed/ +[1]: https://www.debugpoint.com/wp-content/uploads/2023/05/Sample-invalid-or-corrupted-package-error-in-Arch-Linux.jpg +[2]: https://wiki.archlinux.org/title/Pacman/Package_signing \ No newline at end of file