灌溉梦想,记录脚步

Bad id for repo on RedHat

OS版本:redhat 6.7 x64
在配置完成本地YUM后,检查YUM配置报错如下:

[root@redhat yum.repos.d]# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. 
You can use subscription-manager to register.
Bad id for repo: rhel-ResilientStorage , byte =   21
Bad id for repo: rhel-ScalableFileSystem , byte =   23
Cleaning repos: rhel-HighAvailability rhel-LoadBalancer rhel-Server

可看到有两个repo提示id错误,通过检查配置发现:

[rhel-ResilientStorage ]
name=Red Hat Enterprise Linux $releasever - $basearch - ResilientStorage 
baseurl=http://xxxx.forzw.com/os/redhat_6.7_x64/ResilientStorage 
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-ResilientStorage ]中有空格造成,去掉即可解决。