以下是引用easonqian在2013-05-16 15:57:44的发言:
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Repository 'Server' is missing name in configuration, using id
Cleaning up Everything
[root@localhost yum.repos.d]# yum -y install gcc
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Repository 'Server' is missing name in configuration, using id
file:///mnt/iso/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/iso/Server/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Server. Please verify its path and try again
我这个错在哪里
你这个错误是: 你的安装盘的位置不对,
你找找你的repodata 目录在哪个位置,是否直接在光盘根目录,如果是,就应该为
#vi /etc/yum.repos.d/iso.repo
添加以下内容 [Server] baseurl=file:///mnt/iso/Server
为:
[Server] baseurl=file:///mnt/iso
这样,你再试一下。
|