
Manjaro is a rolling distribution, meaning, install it once and it updates forever. So, chances of getting the packages and repository sources corrupt is 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 “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 comments below.
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.