网络工作正常,甚至 mirrors.centos.org 的 ping 也工作正常。但是使用 yum 时会出现如下所述的错误,并且 DNS 设置为 8.8.8.8。
下载存储库“baseos”的元数据时出错:
- Curl error (7): Couldn't connect to server for https://mirrors.centos.org/metalink?repo=centos-baseos-9-stream&arch=x86_64&protocol=https,http
[Failed to connect to mirrors.centos.org port 443: Connection refused]
Error: Failed to download metadata for repo 'baseos': Cannot prepare internal
mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.centos.org/metalink?repo=centos-baseos-9-stream&arch=x86_64&protocol=https,http
[Failed to connect to mirrors.centos.org port 443: Connection refused]