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

2023-05-16

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



转载于:https://blog.51cto.com/coolner/1922905

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

rhel 7 本地源错误提示解决方式 的相关文章

随机推荐