Fork me on GitHub

Curl error (60): SSL peer certificate or SSH remote key was not OK for

执行命令:

生成yum 缓存

dnf makecache

错误如下:

Rocky Linux 9 - BaseOS 0.0 B/s | 0 B 00:04
Errors during downloading metadata for repository 'baseos':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [SSL certificate problem: certificate is not yet valid]
错误:为仓库 'baseos' 下载元数据失败 : Cannot prepare internal mirrorlist: Curl error (60): SSL peer certificate or SSH remote key was not OK for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [SSL certificate problem: certificate is not yet valid]

时间不同步导致的,修改系统时间即可:

date -s 2023-08-18

posted @ 2023-08-18 16:25  Alex-Lzy  阅读(1612)  评论(0编辑  收藏  举报