![Ubuntu 20.04 apt-get update | 证书不受信任。证书中的名称与预期不匹配](https://linux22.com/image/1026011/Ubuntu%2020.04%20apt-get%20update%20%7C%20%E8%AF%81%E4%B9%A6%E4%B8%8D%E5%8F%97%E4%BF%A1%E4%BB%BB%E3%80%82%E8%AF%81%E4%B9%A6%E4%B8%AD%E7%9A%84%E5%90%8D%E7%A7%B0%E4%B8%8E%E9%A2%84%E6%9C%9F%E4%B8%8D%E5%8C%B9%E9%85%8D%20.png)
我只是想更新我的环境,因此想运行sudo apt-get update
它来返回
Ign:5 https://www.scootersoftware.com bcompare4 InRelease
Hit:7 https://www.scootersoftware.com bcompare4 Release
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease
Ign:1 https://it.archive.ubuntu.com/ubuntu focal InRelease
Err:4 https://security.ubuntu.com/ubuntu focal-security InRelease
Could not connect to security.ubuntu.com:443 (91.189.88.152). - connect (111: Connection refused)
Ign:2 https://it.archive.ubuntu.com/ubuntu focal-updates InRelease
Ign:3 https://it.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 https://packages.microsoft.com/repos/code stable InRelease
Err:11 https://it.archive.ubuntu.com/ubuntu focal Release
Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: X.X.X.X 443]
Err:12 https://it.archive.ubuntu.com/ubuntu focal-updates Release
Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: X.X.X.X 443]
Err:13 https://it.archive.ubuntu.com/ubuntu focal-backports Release
Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Error in the certificate verification. [IP: X.X.X.X 443]
Hit:10 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done
E: The repository 'http://it.archive.ubuntu.com/ubuntu focal Release' no longer has 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.
E: The repository 'http://it.archive.ubuntu.com/ubuntu focal-updates Release' no longer has 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.
E: The repository 'http://it.archive.ubuntu.com/ubuntu focal-backports Release' no longer has 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.
我发现了一些建议运行sudo apt-get install --reinstall ca-certificates
但这也让我回到像这里。
当我运行它时sudo apt-get update --fix-missing
,它也会返回类似这里
证书名称似乎与终端中显示的某些预期标准不匹配。有什么建议吗?
答案1
Download from:
我通过改变下面解决了这个问题Ubuntu 软件回到主服务器,然后恢复到我实际的服务器 Italia。重启服务器后,我就能get update
和install
他们联系了。