CentOS-使用yum时出错



当我尝试使用yum、时,会出现此错误

http://iredmail.org/yum/rpms/6/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: iRedMail. Please verify its path and try again

我尝试了以下操作,但错误仍然存在。

yum clean all
rm /var/lib/rpm/__db*
rpm --rebuilddb
yum update

请让我知道如何解决这个问题,谢谢你的帮助。

/etc/yum.repos.d内创建repo.disabled

[root@centos ~]# mkdir /etc/yum.repos.d/repo.disabled
[root@centos ~]# ls /etc/yum.repos.d/
centos.repo centos.repo  centos-updates.repo  centos-updates-testing.repo  
repo.disabled

然后将所有这些3repo文件移动到repo.禁用文件夹:

[root@centos ~]# mv /etc/yum.repos.d/centos.repo/etc/yum.repos.d/repo.disabled
[root@centos ~]# mv /etc/yum.repos.d/centos-updates.repo/etc/yum.repos.d/repo.disabled
[root@centos ~]# mv /etc/yum.repos.d/centos-updates-testing.repo/etc/yum.repos.d/repo.disabled

列出/etc/yum.repos.d:中更新的文件和文件夹

[root@centos ~]# ls -l /etc/yum.repos.d/
total 8
-rw-r--r--. 1 root root   92 Aug 18 00:09 centos.repo
drwxr-xr-x. 2 root root 4096 Aug 18 11:27 repo.disabled

注意:只有文件centos.repo和文件夹repo.disabled应该存在。

现在,您必须运行yum-clean-all来清除缓存,一切都应该正常工作。

[root@centos ~]# yum clean all

最新更新