Ubuntu 20.04 apt-get update | 证书不受信任。证书中的名称与预期不匹配

Ubuntu 20.04 apt-get update | 证书不受信任。证书中的名称与预期不匹配

我只是想更新我的环境,因此想运行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 updateinstall他们联系了。

相关内容