我已经在虚拟机中安装了 CentOS 6 并尝试安装一些软件包
yum install命令给出以下错误
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
http://vault.centos.org/6/os/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
Run Code Online (Sandbox Code Playgroud)
我检查了很多答案,但没有一个有效。请问有人可以指导一下吗?
Kra*_*ime 14
问题是因为您的系统上的 ca 证书包已过时。要纠正此问题:
wget https://vault.centos.org/6.10/updates/x86_64/Packages/ca-certificates-2020.2.41-65.1.el6_10.noarch.rpm --no-check-certificate
rpm -iU ca-certificates-2020.2.41-65.1.el6_10.noarch.rpm
Run Code Online (Sandbox Code Playgroud)
请记住,CentOS 6 已不再生产,并且由于安全证书的变化,无法保证此修复程序将永远有效。
| 归档时间: |
|
| 查看次数: |
12761 次 |
| 最近记录: |