![服务器证书验证失败。CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无](https://linux22.com/image/1184798/%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81%E5%A4%B1%E8%B4%A5%E3%80%82CAfile%EF%BC%9A%2Fetc%2Fssl%2Fcerts%2Fca-certificates.crt%20CRLfile%EF%BC%9A%E6%97%A0.png)
我正在尝试按照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 版本,或者,如果你喜欢冒险,你可以按照此答案中的说明进行操作从终端手动升级。