
i have RHEL 6.3
[root@RHEL6 yum.repos.d]# uname -a
Linux RHEL6.3-64-BuildMac 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
My /etc/yum.conf looks like
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
reposdir=/etc/yum.repos.d/rhel.repo
The contents of my /etc.yum.repo.d/rhel.repo looks like
[rhelrepo]
name=my rhel repo
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
#gpgkey=http://mirror.centos.org/centos/6.3/os/x86_64/RPM-GPG-KEY-CentOS-6
enabled=1
gpgcheck=0
但我的 yum 更新失敗並出現以下錯誤
[root@RHEL6 yum.repos.d]# yum update
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Update Process
No Packages marked for Update
請有人幫忙
答案1
停用訂閱管理器並嘗試
更改 /etc/yum/pluginconf.d/product-id.conf 和 /etc/yum/pluginconf.d/subscription-manager.conf 中的enable=0
[主要的]
啟用=0
然後清理快取
rm -rfv /var/cache/yum/*
百勝乾淨所有
答案2
這可能會有幫助。不過我自己沒有遇到這個錯誤,所以我無法測試。
http://lpar.ath0.com/2012/09/10/yum-unable-to-read-consumer-identity/
答案3
RHEL 要求您將自己標識為合法客戶才能進行更新,而您發布的錯誤訊息似乎表明失敗。
答案4
要修復“無法讀取消費者身份”警告:
$ vi /etc/yum/pluginconf.d/subscription-manager.conf
然後將啟用更改為 0,文件如下所示:
[main]
enabled=0
然後您的「無法讀取消費者身分」警告就會消失。另外,您的更新可能沒有失敗,可能只是當時沒有要更新的軟體包。保留警告也可以,不會對功能產生影響。