I tried installing a programs but it says Error: GPG check FAILED Here is full log
> Last metadata expiration check: 0:20:47 ago on Sun 12 Dec 2021 05:56:58 PM IST.
Dependencies resolved.
========================================================================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================================================================
Installing:
dconf-editor x86_64 3.38.3-2.fc35 fedora 670 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package
Total size: 670 k
Installed size: 2.9 M
Downloading Packages:
[SKIPPED] dconf-editor-3.38.3-2.fc35.x86_64.rpm: Already downloaded
Cannot find rpmkeys executable to verify signatures.
Problem opening package dconf-editor-3.38.3-2.fc35.x86_64.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
Also is sudo su this error
bash: register-python-argcomplete: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
bash: sh: command not found
bash: tr: command not found
bash: cat: command not found...
Packages providing this file are:
'coreutils'
'coreutils-single'
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
I first edited it and then reset it to default state
This is on the getfedora.org download verification page. It is possible the main fedora gpg keys did not get installed for some reason sudo curl https://getfedora.org/static/fedora.gpg | gpg --import
My understanding, each time we run check-update it will save cache of meta database. But if we run install, upgrade, distro-sync, it will compare the meta then first download the packages and save the downloaded packages as cache.
Sometime on those process some packages failed to download correctly and if it’s come to part on installing the packages or on verification or on running script during installation, it will not works correctly.
From messages above it suggested to clean the cache with dnf clean packages, but you could also clean all cache (including meta etc.) by using dnf clean all then try again to dnf check-update --refresh, dnf install packages --refresh, or any dnf command related.
I think you would want that in either ~/.bash_profile or ~/.bashrc.
Also, I think you want to add ‘export’ to the beginning of those lines when you move them from /etc/environment so the variables are actually made part of the environment for your user.
This should work.
If you have other users who need those changes in their environment as well you can put that in /etc/bashrc or /etc/profile instead.
Note that the system searches $PATH from beginning to end and executes the first matching command found, so if you add everything specialized to the beginning as your PATH statement above did then it adds a small amount of time to finding actual commands. It also can potentially interfere with executing system commands if it finds an identically named command in a different location.