yum不成功

来源:互联网 发布:ios10怎么卸载软件 编辑:程序博客网 时间:2024/05/01 08:02

yum原配置好了,确认没有问题,然后yum list报错:

[root@ectona ~]# yum listLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.file:///mnt/cdrom/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/Server/repodata/repomd.xmlTrying other mirror.Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-source. Please verify its path and try again

试了很多方法,都快崩溃了,后来。。

 rm -f /etc/yum.repos.d/rhel-source.repo 

yum list成功了!!


就因为默认的配置文件存在呀!

冬天,好冷。

1 0
原创粉丝点击