Linux Security Useful

SOLOVED: signatures were invalid EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana

If after the linux apt update command you receive an error similar to what is seen below:

root@epyc:~# apt update
Get:1 focal-security InRelease [114 kB]
Ign:2 stable InRelease
Hit:3 focal InRelease
Get:4 stable Release [2154 B]
Hit:5 focal InRelease
Get:6 stable Release.gpg [819 B]
Get:7 focal-updates InRelease [114 kB]
Get:8 focal-backports InRelease [108 kB]
Ign:6 stable Release.gpg
Get:9 focal InRelease [2345 B]
Err:9 focal InRelease
The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <[email protected]>
Reading package lists… Done
W: GPG error: stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository ‘ stable Release’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: focal InRelease: The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <[email protected]>

Newer solution, UPDATE 2).

I found that it was actually much simpler to let linux solve this problem by itself and for this I used the following commands, because a simple apt update/upgrade no longer worked:

  • step 1).
wget -O - | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/goaccess.gpg arch=$(dpkg --print-architecture)] $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/goaccess.list
sudo apt-get update
  • step 2).
sudo apt upgrade --fix-missing

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Need to get 940 kB/218 MB of archives.
After this operation, 213 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 focal/main amd64 goaccess amd64 1:1.5.7-focal
404 Not Found [IP: 443]
Reading changelogs... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 154850 files and directories currently installed.)
Preparing to unpack .../motd-news-config_11ubuntu5.6_all.deb ...
Unpacking motd-news-config (11ubuntu5.6) over (11ubuntu5.4) ...
Preparing to unpack .../libc6-dev_2.31-0ubuntu9.9_amd64.deb ...

* The older solution:

Then I recommend you try the following command to create a GoAccess-specific keyring:

wget -O - | 
  sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -

then try apt update again!

solution found via:

Leave a Reply

Your email address will not be published. Required fields are marked *