各位牛人帮忙看看 CentOS 的 Yum 问题怎么解决

博狐 发布于 2011/05/22 14:06
阅读 605
收藏 1

我是一个自学centos的新手,现在遇到了这样一个问题,

在运行yum的时候

出现如下的错误,各位高人看看怎么解决啊,烦请介绍的详细点。

加载中
0
runeveryday
runeveryday

编辑下这个文件/etc/yum.repos.d/CentOS-Base.repo

将第一行第一个字符设置成#。 

0
mark35
mark35

既然日志显示CentOS-Base.repo line1,怎么不先去看看呢。

0
博狐
博狐

引用来自#2楼“runeveryday”的帖子

编辑下这个文件/etc/yum.repos.d/CentOS-Base.repo

将第一行第一个字符设置成#。 

现在又出现了新的问题啊。希望帮忙。

现在CentOS-Base.repo文件内容是:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

0
博狐
博狐

有谁帮帮忙啊?谢谢

0
Cecil_Nasa
Cecil_Nasa

你yum repo的哪个配置文件中有“RPM-GPG-KEY.art.txt”?

0
自主创新
自主创新
四道杠明显有问题
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部