error: failed retrieving file

Proceed with installation? [Y/n] y
(489/489) checking keys in keyring                                                                                                            [---------------------------------------------------------------------------------------] 100%
(489/489) checking package integrity                                                                                                          [---------------------------------------------------------------------------------------] 100%
error: linux: signature from "@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/linux-5.10.7.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: nvidia: signature from "@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/nvidia-460.32.03-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: r8168: signature from "@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/r8168-8.048.03-57-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)
Errors occurred, no packages were upgraded.

welcome at the purple side of Linux!

Make sure to update system before installing new packages, and sometimes may needed to update database with it e.g. sudo pacman -Syyu

Read here if PGP issue still happens after that:

remark: edited your post: added code tags and removed Names and Email, take care to not post emailadress from others in clear text.

Welcome Aboard! :enos_flag:

that was once i a while kinda error
this one keep coming again and again

and if you can tell me how to correct currupted pkg in /var/cache/pacman/pkg/

Your database are not updated. Make sure to follow the command Mr. Joe suggested.

You usually use sudo pacman -Syu to update system. -Syyu forces a database refresh before updating, and should not be used regularly. But its okay to use it if the usual command isn’t working.

Edit: how can I forget! Welcome to Endeavour OS! :enos_flag: :partying_face:

Edit 2: If this is your first update after a fresh install, you should try running sudo pacman -Sy archlinux-keyring before updating.

i tried all the things you said @flyingcakes but still same issue.

Are you sure you have an internet connection?

yes i’m sure @Elloquin

Looks like that package just updated an hour ago…Maybe it hasn’t hit your mirrors yet?

It should be nvidia-460.32.03-5

https://archlinux.org/packages/extra/x86_64/nvidia/

nvidia 460.32.03-5

Package Actions

Architecture: x86_64
Repository: Extra
Description: NVIDIA drivers for linux
Upstream URL: https://www.nvidia.com/
License(s): custom
Provides: NVIDIA-MODULE
Maintainers: Sven-Hendrik Haase
Felix Yan
Package Size: 22.9 MB
Installed Size: 22.9 MB
Last Packager: Jan Alexander Steffens
Build Date: 2021-01-19 22:52 UTC
Signed By: Jan Alexander Steffens
Signature Date: 2021-01-20 01:56 UTC
Last Updated: 2021-01-20 13:36 UTC (an hour ago)
1 Like

Lets try updating your mirrorlist.
Make a backup of the bundled mirrorlist file

cp /etc/pacman.d/mirrorlist ~/mirrorlist.bak

Then run reflector to rate and save fresh mirrors.

reflector --verbose --latest 15 --sort rate --save /etc/pacman.d/mirrorlist

After this, try running the update commands suggested earlier.

Re-posted because I earlier replied to the wrong post

reflector --verbose --latest 15 --sort rate --save /etc/pacman.d/mirrorlist
Traceback (most recent call last):
File “/usr/bin/reflector”, line 3, in
import Reflector
ModuleNotFoundError: No module named ‘Reflector’

Return:
inxi -Fxxxza --no-host

wait things started working

sudo pacman -Sy
sudo pacman -Syu is running now

it worked itself or maybe it worked after cp command
thanks for your help, everyone