我有一台运行 18.04 的 Ubuntu 服务器虚拟机,它安装在 Proxmox 6.1-7 上,但我无法安装景观 19.10上。我按照在本地设置页面上。我尝试过带--update
标志和不带标志的情况。以下代码片段是尝试第一步时返回的内容:
username@landscape:~$ sudo add-apt-repository ppa:landscape/19.10
October 2019 release of Landscape
More info: https://launchpad.net/~landscape/+archive/ubuntu/19.10
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease
Ign:2 https://ppa.launchpad.net/landscape/19.10/ubuntu bionic InRelease
Err:6 https://ppa.launchpad.net/landscape/19.10/ubuntu bionic Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: 91.189.95.83 443]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/landscape/19.10/ubuntu bionic Release' does not have a Release file.
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.
如您所见,它在添加 PPA 时遇到了问题,在此过程中引用了证书问题。如果我尝试使用命令进行下一步安装sudo apt install landscape-server-quickstart
,我会得到以下信息:
username@landscape:~$ sudo apt install landscape-server-quickstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package landscape-server-quickstart
如果我尝试访问该包的 URL,https://ppa.launchpad.net/landscape/19.10/ubuntu bionic
则会收到证书错误。
结束语
服务器和虚拟机管理程序都是最新的,包括 apt 和 snap。我没有代理或 IDP/IPS 来中断流量。我这里是不是漏掉了什么?证书有问题吗?我应该遵循其他指南吗?
答案1
PPA 可通过明文 http 访问。私有 PPA 除外,因为私有 PPA 需要身份验证,但这不是其中之一。此外,私有 PPA 可通过以下方式提供:https://private-ppa.launchpad.net,因此很可能解释了您遇到的 SSL 错误。
我建议:
- 删除那些 https ppa 条目
- 重新运行
sudo add-apt-repository --update ppa:landscape/19.10
,以便它可以添加回 ppa(作为 http,而不是 https)并导入 GPG 签名密钥(如果尚未完成)。
答案2
手动将下一条记录添加到您的/etc/apt/sources.list
:
deb http://ppa.launchpad.net/landscape/19.10/ubuntu bionic main
然后
sudo apt update && sudo apt install landscape-server-quickstart