1. 程式人生 > >rhel 7 本地源錯誤提示解決方式

rhel 7 本地源錯誤提示解決方式

rhel7 錯誤提示 本地源

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 本地源錯誤提示解決方式