CentOS yum install出现问题,Could not open/read file:///mnt/cdrom/repodata/repomd.xml
来源:互联网 发布:域名从新网转到万网 编辑:程序博客网 时间:2024/05/16 12:39
[root@host-10-0-0-9 ~]# yum install httpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-29.el6.centos will be installed
--> Processing Dependency: httpd-tools = 2.2.15-29.el6.centos for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-29.el6.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-29.el6.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
httpd x86_64 2.2.15-29.el6.centos c6-media 821 k
Installing for dependencies:
apr x86_64 1.3.9-5.el6_2 c6-media 123 k
apr-util x86_64 1.3.9-3.el6_0.1 c6-media 87 k
apr-util-ldap x86_64 1.3.9-3.el6_0.1 c6-media 15 k
httpd-tools x86_64 2.2.15-29.el6.centos c6-media 73 k
Transaction Summary
================================================================================
Install 5 Package(s)
Total download size: 1.1 M
Installed size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
apr-1.3.9-5.el6_2.x86_64: failure: Packages/apr-1.3.9-5.el6_2.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
httpd-tools-2.2.15-29.el6.centos.x86_64: failure: Packages/httpd-tools-2.2.15-29.el6.centos.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
apr-util-ldap-1.3.9-3.el6_0.1.x86_64: failure: Packages/apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
httpd-2.2.15-29.el6.centos.x86_64: failure: Packages/httpd-2.2.15-29.el6.centos.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
apr-util-1.3.9-3.el6_0.1.x86_64: failure: Packages/apr-util-1.3.9-3.el6_0.1.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-29.el6.centos will be installed
--> Processing Dependency: httpd-tools = 2.2.15-29.el6.centos for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-29.el6.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-29.el6.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-29.el6.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
httpd x86_64 2.2.15-29.el6.centos c6-media 821 k
Installing for dependencies:
apr x86_64 1.3.9-5.el6_2 c6-media 123 k
apr-util x86_64 1.3.9-3.el6_0.1 c6-media 87 k
apr-util-ldap x86_64 1.3.9-3.el6_0.1 c6-media 15 k
httpd-tools x86_64 2.2.15-29.el6.centos c6-media 73 k
Transaction Summary
================================================================================
Install 5 Package(s)
Total download size: 1.1 M
Installed size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
apr-1.3.9-5.el6_2.x86_64: failure: Packages/apr-1.3.9-5.el6_2.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
httpd-tools-2.2.15-29.el6.centos.x86_64: failure: Packages/httpd-tools-2.2.15-29.el6.centos.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
apr-util-ldap-1.3.9-3.el6_0.1.x86_64: failure: Packages/apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
httpd-2.2.15-29.el6.centos.x86_64: failure: Packages/httpd-2.2.15-29.el6.centos.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
apr-util-1.3.9-3.el6_0.1.x86_64: failure: Packages/apr-util-1.3.9-3.el6_0.1.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.
师妹告诉我,是yum源的问题。解决方法是更换yum源,链接如下:
http://blog.csdn.net/ichsonx/article/details/8518420
http://blog.csdn.net/ichsonx/article/details/8518631
更新之后下载,报错:
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
按照 http://blog.csdn.net/zouhao619/article/details/36870589 的方法将CentOS-Base.repo中的所有RPM-GPG-KEY-CentOS-5更改为RPM-GPG-KEY-CentOS-6并yum makecache后仍报同样的错误。
按照 http://www.cnblogs.com/jackluo/p/3598167.html
rpm --import /etc/pki/rpm-gpg/RPM*
成功!
0 0
- CentOS yum install出现问题,Could not open/read file:///mnt/cdrom/repodata/repomd.xml
- YUM安装RPM安装包时报错Could not open/read file:///mnt/repodata/repomd.xml
- YUM安装RPM安装包时报错Could not open/read file:///mnt/repodata/repomd.xml
- file:///mnt/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/Server/repodata/r
- 配置YUM源出现Errno 14 Could not open/read repomd.xml 错误的解决办法
- yum安装rpm安装包时报错 [Errno 14] "Couldn't open file /mnt/repodata/repomd.xml"
- yum 源问题:repodata/repomd.xml 404 Not Found
- CentOS 7.0 yum install 错误http://vault.centos.org/centos/7/os/Source/repodata/repomd.xml: [Errno 14]
- CentOS 5.7执行yum 命令安装goaccess出现http://mirrors.aliyun.com/centos/5/updates/x86_64/repodata/repomd.xml
- yum错误:file://media/CentOS_5.2_Final/repodata/repomd.xml:[Error 5]......Cannot retrieve repository metadata(repomd.xml) for repos
- DbVisualizer出现下列错误:Could not read XML file
- Could not Open Install.Log File解决方法
- [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
- centos : 没有那个文件或目录: '/media/CentOS/repodata/repomd.xml
- http://mirror.centos.org/centos/5/addons/x86_64/repodata/repomd.xml错误如何解决
- 阿里云CentOS Yum 出现Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge
- https://packages.elastic.co/elasticsearch/2.3/centos/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
- 电视端Android TV应用移植开发常见问题Q&A-Android TV 应用开发
- jxl的API
- 第十三周项目一 数组大折腾(1.五个一换行输出数组元素值)
- 我如何从186斤瘦到146斤之(一)
- 第13周项目1-2
- CentOS yum install出现问题,Could not open/read file:///mnt/cdrom/repodata/repomd.xml
- 常用参数曲面
- Android源码学习——工具篇
- 在compute node上安装neutron时,出错neutron ValueError: :5672
- 第十三周项目1--数组大折腾
- 第十二周项目三(1)
- eclipse下apache虚拟内存设置
- CSS中padding、margin两个重要属性的详细介绍及举例说明
- Google推出容器引擎服务