在Linux下配置好yum源并yum repolist、yum makecache后为什么yum list时出现错误?

配置文件中为:
[base]
14 name=CentOS-6 - Base - 163.com
15 baseurl=http://mirrors.163.com/centos/6/os/i386/Packages
16 #mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
17 gpgcheck=1
18 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

使用yum list时出现了:
[root@localhost Downloads]# yum list
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
file:///media/cdrom/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/Server/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: instDVD. Please verify its path and try again

”[Errno 14]Could not open/read file:///media/cdrom/Server/repodata/repomd.xml “

你 cdrom 没mount 好,或者光驱中就没有centos盘。 百度下 linux 怎么 mount 上cdrom

或者,你在 /etc/yum.repos.d 下的有一个xxx.repos 中配置的是用本地光驱中repodata做yum 库了。
既然连不了cdrom 那就先把这个 [cdrom] 库先停用一下:
vi xxx.repos
(应该是叫 xx cdrom 段, 找到那里)
[cdrom]
.....
enable = 0
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-06-24

不知你现在解决了没有,我也遇到同样的我问题,后来网上看资料是说DNS没有设置好

[[email protected] ~]# vi /etc/resolv.conf
nameserver 8.8.8.8    #或者改成实际的DNS

第2个回答  2015-01-17
这个问题很深了,不出错是不可能的,是人都会犯错,只不过看你的错的大小而以,出纳容易出错的地方莫过于填写支票、进账单、承兑汇票、还有就是现金的收支,其实这些都是的归定,只要注意一般不会出什么错,但是出纳和其他人员的相处我觉得这才是最重要的,如果这个地方出错了,那比什么都严重
第3个回答  推荐于2017-11-26
看错误 感觉你用的是 镜像 yum 源啊 。本回答被网友采纳
相似回答