今天在做实验的时候安装bind-*软件,想弄个本地源安装,就照着RHEL的方式弄,结果出错了,想想CentOS和RHEL光盘文件rpm包存放文件夹的位置不同引起的问题,提示如下错误:[root@Centos yum.repos.d]# yum install bind-*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: "/mnt/CentOS/repodata/repomd.xml"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: c5-media. Please verify its path and try again因为我把光盘挂载在/mnt/下面,所以在配置/etc/yum.repos.d/CentOS-Media.repo本地源搜索文件的时候是把baseurl的路径指到/mnt/CentOS下面,结果就出错,后来一看/mnt下面有个repodata文件夹,里面有索引文件,就直接把baseurl改为/mnt就行了,这样就可以自动搜索到那个repodata下面的索引文件了~~~~CentOS无人值守安装系统Linux 算术运算 bc expr dc相关资讯 CentOS教程
- CentOS上使用Dropbox (02/07/2013 09:11:47)
- CentOS 网络设置修改 (02/04/2013 21:28:42)
- CentOS如何安装whois命令 (01/20/2013 14:33:29)
| - CentOS 下修改/dev/shm 大小解决 (02/04/2013 21:30:15)
- CentOS 注销在线用户, Linux 注销 (02/04/2013 21:24:06)
- CentOS安装完重启后不能进入终端 (01/02/2013 16:04:02)
|
本文评论 查看全部评论 (0)