yum更新失败


0
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

请有人帮忙

Answers:


1

禁用 订阅经理 并尝试

在/etc/yum/pluginconf.d/product-id.conf和/etc/yum/pluginconf.d/subscription-manager.conf中更改enable = 0

[主要]

启用= 0

然后清理缓存

rm -rfv / var / cache / yum / *

百胜清洁一切

Renju Chandran chingath 19 feb 2014 07:55
source

我一直在“更新基于证书的存储库”,这个解决方案对我有用,谢谢。请注意,我在该计算机上没有活动的RHEL订阅。
Liam 14 apr 2014 10:17


0

RHEL要求您将自己标识为更新的合法客户,并且您发布的错误消息似乎表示失败。

vonbrand 16 jan 2013 13:57
source

0

要修复“无法读取消费者身份”警告:

$ vi /etc/yum/pluginconf.d/subscription-manager.conf

然后将enabled更改为0,以便文件如下所示:

[main]
enabled=0

然后,您的“无法阅读消费者身份”警告将消失。此外,您的更新可能没有失败,当时可能只有更新的软件包。留下警告也很好,没有任何功能影响。

Matthew 30 jan 2013 22:59
source
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.