When I was upgrading google-chrome
using pacman -S google-chrome
, it complained as follows:
# pacman -S google-chrome
resolving dependencies...
looking for conflicting packages...
Packages (1) google-chrome-91.0.4472.106-1
Total Download Size: 85.58 MiB
Total Installed Size: 254.02 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
google-chrome-91.0.4472.106-1-x86_64 85.6 MiB 40.2 MiB/s 00:02 [########################################] 100%
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
error: google-chrome: signature from "lilac (build machine) <lilac@build.archlinuxcn.org>" is unknown trust
:: File /var/cache/pacman/pkg/google-chrome-91.0.4472.106-1-x86_64.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 (PGP signature))
Errors occurred, no packages were upgraded.
Any idea why this is happening? and how to solve it?
I tried clean the pkg cache using paccache -r
but no luck.
Besides, I also tried:
pacman-key --init
pacman-key --populate archlinux manjaro
pacman-key --refresh-keys
update: also tried pamac
as @Aragorn suggested:
$ pamac update google-chrome
Preparing...
Synchronizing package databases...
Warning: hplip: ignoring package upgrade (1:3.21.2-1 => 1:3.21.4-1)
Resolving dependencies...
Checking inter-conflicts...
To upgrade (5):
systemd-libs 248.3-3 (248.3-2) core
systemd 248.3-3 (248.3-2) core
firefox 89.0.1-1 (89.0-1) extra
google-chrome 91.0.4472.106-1 (91.0.4472.101-1) archlinuxcn
systemd-sysvcompat 248.3-3 (248.3-2) core
Total installed size: 559.9 kB
Apply transaction ? [y/N] y
Checking keyring... [5/5]
Checking integrity... [5/5]
Error: google-chrome: signature from "lilac (build machine) <lilac@build.archlinuxcn.org>" is unknown trust
Removing invalid files and retrying...
Download of google-chrome (91.0.4472.106-1) started
Download of google-chrome (91.0.4472.106-1) finished
Checking keyring... [5/5]
Checking integrity... [5/5]
Error: google-chrome: signature from "lilac (build machine) <lilac@build.archlinuxcn.org>" is unknown trust
Error: Failed to commit transaction: invalid or corrupted package: