W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://updates.atomicorp.com/channels/tortix-common/ubuntu bionic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FFBD5D0A4520AFA9
W: Failed to fetch https://updates.atomicorp.com/channels/tortix-common/ubuntu/dists/bionic/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FFBD5D0A4520AFA9
Issue
In Ubuntu 18.04 bionic, apt update
throws the above error during Ubuntu package update process. The fix given on Cpanel.com doesn’t work because the issue isn’t with apt-key
.
How to fix
Make sure to run the below commands with root using sudo su
.
First, check the Atomicorp apt source file.
sudo cat /etc/apt/sources.list.d/tortix-common.list
deb [signed-by=/usr/share/keyrings/RPM-GPG-KEY.atomicorp.txt arch=amd64] https://updates.atomicorp.com/channels/tortix-common/ubuntu bionic main
Second, check if RPM-GPG-KEY.atomicorp.txt exists.
cat /usr/share/keyrings/RPM-GPG-KEY.atomicorp.txt
cat: /usr/share/keyrings/RPM-GPG-KEY.atomicorp.txt: No such file or directory
If the RPM-GPG-KEY.atomicorp.txt doesn’t exist, grab the file from Atomicorp website.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQINBFCrkUwBEADpjFL/PJmBGz36ZZVCGE9nxxrwYdIDYjvrjS9Xoq0qExcJE2qD
VitCDI9KLX7/qu61985vF13C5oqpuhl7nqTjwC59VJM+bitblj7o4DtKflyVtUK8
ee0PwDnOk0NDHZZVB2KcaLs+cblbZL6LOjtQgWqjE7VH5AreeaqaJldP8kRBl/2R
Ug8o8NyUlvhGVKK/s7scIU9GhV4diFnNipnpdSZtRO1wgkGJ/uMhkSVRVrS1Ci0p
iADA+gmbmHpyk+H8JrtuiHm5K0OE31MoIM5jLwEpTzX5yQXOCEkQ8Dmfxy5T1qSV
1d6WdmoBmcXltfXifbNLkOYdZCTiW1z9uxi+PZ0GAyv04qICElDgCSGJ/5UxOjYG
GhDNRs7BmEHSfQHD9kE7VJ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Qll
ZkDBI7nqmV87cSJZsQPQPEzZej6rKA/pvOaUR9+p9jCildt2m9ulozk2pXgJgNVb
kt1o05etg6iRaeSaNQ==
=DrwN
-----END PGP PUBLIC KEY BLOCK-----
Create the RPM-GPG-KEY.atomicorp.txt in the Keyrings.
nano /usr/share/keyrings/RPM-GPG-KEY.atomicorp.txt
Copy the PGP Public key above or Atomicorp website to the file and Ctrl + X
or Cmd + X
to save and exit.
Finally, update & upgrade Ubuntu.
apt update && apt upgrade