linux系统使用yum安装rpm包来解决依赖关系

xiaoxun1008 2009-09-05 01:32:55
使企业版redhat5.2
使用yum安装时出现的如下错误,请各位帮我解决一下。
[root@localhost ~]# yum install mysql
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
file:///mnt/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-debuginfo. Please verify its path and try again
...全文
1200 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
unixlinuxsys 2009-09-05
  • 打赏
  • 举报
回复
载入“rhnplugin”插件
载入中“安全”插件
该系统是在RHN没有登记。
红帽网络支持将被禁用。
文件:/ / /破伤风/ repodata / repomd.xml:[访问Errno 5] OSError:[访问Errno 2]没有这样的文件或目录:'/破伤风/ repodata / repomd.xml'
尝试其他镜像。
错误:无法检索库元数据(repomd.xml)的库:红帽- debuginfo。请确认它的路径,然后再试一次


1、你的yum没有正确配置
2、没有注册
3、建议使用centos的yum源
4、建议使用rpmfprge的yum源
xiaocai0001 2009-09-05
  • 打赏
  • 举报
回复
also if you don't have RHN register, (got from 'This system is not registered with RHN. '), basically you can not get any rpm repository other than those coming with the RHEL DVD iso.
xiaocai0001 2009-09-05
  • 打赏
  • 举报
回复
check /etc/yum.repos.d/ file.
there should be a file containing 'rhel-debuginfo' remove that file or change the 'baseurl' to correct one.

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧