首页 > 代码库 > rhel 7 本地源错误提示解决方式
rhel 7 本地源错误提示解决方式
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 本地源错误提示解决方式