免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4979 | 回复: 4
打印 上一主题 下一主题

[系统管理] redhat 6.2的yum源不能用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-25 15:58 |只看该作者 |倒序浏览
刚刚安装的redhat 6.2,yum不能使用。
#yum  list
出现如下错误:
  1 Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
  2 Updating certificate-based repositories.
  3 base                                                     | 2.4 kB     00:00
  4 http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
  5 Trying other mirror.
  6 Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

google很久,没有解决,求帮忙!!

我的yum 源配置如下(/etc/yum.repos.d/base.repo):
1 [base]
  2 name=CentOS-$releasever - Base
  3 #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  4 baseurl=http://mirrors.163.com/centos/6/os/i386
  5 gpgcheck=0
  6 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  7 enabled=1

yum.conf内容如下:
[main]
  2 cachedir=/var/cache/yum/$basearch/$releasever
  3 keepcache=0
  4 debuglevel=2
  5 logfile=/var/log/yum.log
  6 exactarch=1
  7 obsoletes=1
  8 gpgcheck=0
  9 plugins=1
10 installonly_limit=3
11 skip_if_unavailable=True
12
13 #  This is the default, if you make this bigger yum won't see if the metadata
14 # is newer on the remote and so you'll "gain" the bandwidth of not having to
15 # download the new metadata and "pay" for it by yum not having correct
16 # information.
17 #  It is esp. important, to have correct metadata, for distributions like
18 # Fedora which don't keep old packages around. If you don't like this checking
19 # interupting your command line usage, it's much better to have something
20 # manually check the metadata once an hour (yum-updatesd will do this).
21 # metadata_expire=90m
22
23 # PUT YOUR REPOS HERE OR IN separate files named file.repo
24 # in /etc/yum.repos.d

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2012-12-25 16:01 |只看该作者
貌似6.2在163源里面没有了,只有最新的6.3的.再说了,你用的rhel的,为啥要用centos的源,还不如直接安装centos呢

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
3 [报告]
发表于 2012-12-25 16:23 |只看该作者
把163的源换成CentOS 的看看行不行?

论坛徽章:
0
4 [报告]
发表于 2012-12-25 16:39 |只看该作者
还是一样的,我这个源在另一台redhat 64位系统上面是可以的,奇怪的是在另一台安装的redhat 32上面就不行,

我猜测是yum的哪个配置错了

论坛徽章:
0
5 [报告]
发表于 2013-01-25 16:57 |只看该作者
本帖最后由 shmilygyy 于 2013-01-25 16:58 编辑

等消息.以为是本地.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP