解决方法
更新ca-certficates包
按照网上的说法,需要更新ca-certficates包。
<button class="VJbwyy" type="button" aria-label="复制代码" style="padding: 0px; outline: 0px;">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"></svg></button>
yum clean all
yum --disablerepo=epel -y update ca-certificates
<button class="VJbwyy" type="button" aria-label="复制代码" style="padding: 0px; outline: 0px;">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"></svg></button>
yum clean all
yum --disablerepo="epel" update nss
我试着更新了,还是一样的报错。但是有人这样做就行了
重建rpm数据库
广大人民群众的智慧是无穷的,又找到一个新的方法。
<button class="VJbwyy" type="button" aria-label="复制代码" style="padding: 0px; outline: 0px;">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"></svg></button>
rpm --rebuilddb
试了,还是没什么卵用。
将https转为http
既然不能用https的仓库,那就直接使用http吧,epel也正好支持http+https两种方式。
<button class="VJbwyy" type="button" aria-label="复制代码" style="padding: 0px; outline: 0px;">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"></svg></button>
sed -i 's#https://#http://#g' /etc/yum.repos.d/epel*repo
问题解决了