服务器证书验证失败。CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无

服务器证书验证失败。CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无

我正在尝试按照Tor 项目 Debian 存储库页面安装最新的 LTS tor 包。

当我运行apt update命令时,出现以下错误

<omitted unrelated lines>
Err:10 https://deb.torproject.org/torproject.org xenial Release
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
<omitted unrelated lines>
Reading package lists... Done
E: The repository 'https://deb.torproject.org/torproject.org xenial 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.

我的 Ubuntu 版本是:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

答案1

由于 Xenial 已停产,因此该存储库中不再提供 Xenial 软件包。请升级到较新且受支持的 Ubuntu 版本(例如 18.04、20.04 等)。

你可以从新下载中安装受支持的 Ubuntu 版本,或者,如果你喜欢冒险,你可以按照此答案中的说明进行操作从终端手动升级。

相关内容