- 论坛徽章:
- 0
|
刚刚安装的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
|
|