0

I am trying to upgrade my 18.04.6 LTS server, but am unable to get updates due to an issue with a public key. When I try to resolve the public key issue I get a failure. Any ideas?

myuser@myuser-VirtualBox:~$ sudo apt-get update
[sudo] password for myuser: 
Hit:1 http://ppa.launchpad.net/bit-team/stable/ubuntu yakkety InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease                     
Get:3 http://repository.veeam.com/backup/linux/agent/dpkg/debian/public stable InRelease [7,549 B]
Hit:4 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:5 http://ppa.launchpad.net/nathan-renniewaldock/qdirstat/ubuntu yakkety InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease                
Get:8 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]    
Err:3 http://repository.veeam.com/backup/linux/agent/dpkg/debian/public stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3268CF038EEC045B
Fetched 73.8 kB in 1s (70.4 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repository.veeam.com/backup/linux/agent/dpkg/debian/public stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3268CF038EEC045B
W: Failed to fetch http://repository.veeam.com/backup/linux/agent/dpkg/debian/public/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3268CF038EEC045B
W: Some index files failed to download. They have been ignored, or old ones used instead.

myuser@myuser-VirtualBox:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 3268CF038EEC045B Executing: /tmp/apt-key-gpghome.KcfykItU12/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 3268CF038EEC045B gpg: keyserver receive failed: Server indicated a failure

1 Answers1

1

At first you have to create a snapshot of current system state using corresponding VirtualBox feature.
Then check all your repositories. They should contain at least the following lines in /etc/apt/sources.list for your actual Ubuntu 18.04.6 LTS:

deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://gb.security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse

You have to remove Docker's repository for xenial, it is not needed.

Then you have to add Veeam's key to the system:

cd /tmp
wget -c http://repository.veeam.com/keys/veeam.gpg
sudo apt-key add veeam.gpg

and update package lists and packages by

sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get install aptitude
sudo aptitude dist-upgrade

Then reboot and run sudo do-release-upgrade to upgrade the system to 20.04 LTS release.

N0rbert
  • 103,263