合 Centos 6使用yum报错 [Errno 14] problem making ssl connection
现象
1 2 3 4 5 6 7 | [root@lhrora11204 yum.repos.d]# yum install -y postgresql13-odbc postgresql13-libs Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connection Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: pgdg-common. Please verify its path and try again |
解决
先把报错的yum源移除,然后更新相关包,最后重新安装:
1 2 3 4 | mv /etc/yum.repos.d/pgdg-redhat-all.repo /tmp/ yum clean all yum update yum curl openssl nss -y mv /tmp/pgdg-redhat-all.repo /etc/yum.repos.d/pgdg-redhat-all.repo |