首页 > 其他 > 详细

rhel 7 本地源错误提示解决方式

时间:2017-05-07 19:44:02      阅读:2172      评论:0      收藏:0      [点我收藏+]

rhel 7 本地源错误提示解决方式

Repository ‘rhel-7-local-source‘: Error parsing config: Error parsing "gpgkey = ‘file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release #\xe8\x8b\xa5\xe4\xb8\xba\xe6\xa0\xa1\xe9\xaa\x8c\xe8\xaf\xb7\xe6\x8c\x87\xe5\xae\x9a\xe5\x85\xac\xe9\x92\xa5\xe6\x96\x87\xe4\xbb\xb6\xe5\x9c\xb0\xe5\x9d\x80‘": URL must be http, ftp, file or https not ""

There are no enabled repos.

 Run "yum repolist all" to see the repos you have.

 You can enable repos with yum-config-manager --enable <repo>

""

 

 

原因:是因为配置文件中有注释,把注释去掉就好了

[rhel-7-local-source]

name="rhel-7-source-server"

baseurl=file:///mnt/cdrom

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release



本文出自 “明日灵感” 博客,请务必保留此出处http://coolner.blog.51cto.com/957576/1922905

rhel 7 本地源错误提示解决方式

原文:http://coolner.blog.51cto.com/957576/1922905

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!