系统版本:
openEuler 24.03 (LTS)
6.6.0-28.0.0.34.oe2403.x86_64
问题概述:
执行 yum makecache提示如下错误,检查网页路径无问题;
# yum makecache
OS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'OS':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for ***.***/openeuler/openEuler-24.03-LTS/OS/x86_64/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'OS': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决办法:
关闭 SSL Verification (生产环境不建议修改):
# vim /etc/yum.conf
添加 sslverify=false
修改后测试:
重新执行yum makecache正常。
# yum makecache
OS 3.4 MB/s | 2.9 MB 00:00
everything 14 MB/s | 16 MB 00:01
EPOL 4.1 MB/s | 4.3 MB 00:01
debuginfo 4.0 MB/s | 4.4 MB 00:01
source 2.3 MB/s | 1.7 MB 00:00
update 6.9 MB/s | 15 MB 00:02
update-source 790 kB/s | 541 kB 00:00
Metadata cache created.
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作