Manjaro is a rolling distribution, meaning, install it once, and it updates forever. So, the chances of getting the packages and repository sources corrupt are less, but it can happen rarely. If you are facing trouble in updating Manjaro 17, and end up getting “Can’t update: signature from …. is marginal trust” error, follow these steps to fix it. This solution should also work for an “invalid or corrupted package” error.
The complete error should look something like this:
error: zstd: signature from "***" is marginal trust :: File /var/cache/pacman/pkg/zstd-1.3.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] error: blosc: signature from "***" is marginal trust :: File /var/cache/pacman/pkg/blosc-1.12.1-1-x86_64.pkg.tar.xz 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.
Fixing Manjaro not updating issue
STEP 1: Launch ‘Terminal’.
STEP 2: Enter the following commands, one at a time followed by pressing enter.
sudo pacman -S archlinux-keyring manjaro-keyring
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys
That’s it! You should now be able to update Manjaro. Did the solution work for you? Do let us know in the comments below.
4 comments
Ran the commands listed and they worked, but there are over 500 updates and when trying to run sudo pacman -Syu it wants to replace about 15 files with extra and then it fails.
no it did not work
“sudo pacman-key –refresh-keys” repaired my Arch Linux system having valid packages downloaded but invalid PGP-signatures. I am now again able to update my system.
Is there any other method as I’m unable to update my system even after following this guide.