公钥问题 - 尝试升级 Lubuntu 18.04.6 LTS

公钥问题 - 尝试升级 Lubuntu 18.04.6 LTS

我正在尝试升级我的 18.04.6 LTS 服务器,但由于公钥问题而无法获取更新。当我尝试解决公钥问题时,我遇到了失败。有什么想法吗?

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

首先,您必须使用相应的 VirtualBox 功能创建当前系统状态的快照。然后检查所有存储库。对于您的实际 Ubuntu 18.04.6 LTS,
它们至少应包含以下几行:/etc/apt/sources.list

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

您必须删除 Docker 的存储库赛尼尔,没有必要。

然后你必须将 Veeam 的密钥添加到系统中:

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

并通过以下方式更新软件包列表和软件包

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

sudo apt-get install aptitude
sudo aptitude dist-upgrade

然后重新启动并运行sudo do-release-upgrade将系统升级到 20.04 LTS 版本。

相关内容