yum安装rpm安装包时报错 [Errno 14] "Couldn't open file /mnt/repodata/repomd.xml"
2017-07-01 20:05
10198 查看
【Linux虚拟机、Vbox】
出现此问题是因为yum源里配置了baseurl=file:///mnt ,但是在这个目录下没有找到需要的资源。经过查找原因发现是因为使用的虚拟机,但是没有挂载镜像,所以使用下面语句来挂载镜像:
mount /dev/cdrom /mnt (注:mount后面有空格,cdrom后面有空格)
然后出现如下提示:
因为使用的是虚拟机,虚拟机上的光驱没有连接
(另外,如果右下角根本就没有这个小光盘图标的话,那就用右ctrl+c将他们召唤出来吧,使用的是VBox虚拟机哦)
右下角有这个光盘一样的小图标,没有加载上光驱的时候,这个小图标是灰的,也不能mount上
右键点击这个小图标,选择镜像,小光盘变亮并且在闪动,代表光驱加载上了
此时再运行mount /dev/cdrom /mnt 语句就成功了
然后运行yum -y install compat-libstdc++-33 elfutils-libelf-devel gcc gcc-c++ glibc-devel glibc-headers libaio-devel libstdc++-devel sysstat unixODBC unixODBC-devel 也成功了~~~
原文链接:http://blog.csdn.net/moranxue/article/details/44460589
出现此问题是因为yum源里配置了baseurl=file:///mnt ,但是在这个目录下没有找到需要的资源。经过查找原因发现是因为使用的虚拟机,但是没有挂载镜像,所以使用下面语句来挂载镜像:
mount /dev/cdrom /mnt (注:mount后面有空格,cdrom后面有空格)
然后出现如下提示:
因为使用的是虚拟机,虚拟机上的光驱没有连接
(另外,如果右下角根本就没有这个小光盘图标的话,那就用右ctrl+c将他们召唤出来吧,使用的是VBox虚拟机哦)
右下角有这个光盘一样的小图标,没有加载上光驱的时候,这个小图标是灰的,也不能mount上
右键点击这个小图标,选择镜像,小光盘变亮并且在闪动,代表光驱加载上了
此时再运行mount /dev/cdrom /mnt 语句就成功了
然后运行yum -y install compat-libstdc++-33 elfutils-libelf-devel gcc gcc-c++ glibc-devel glibc-headers libaio-devel libstdc++-devel sysstat unixODBC unixODBC-devel 也成功了~~~
原文链接:http://blog.csdn.net/moranxue/article/details/44460589
相关文章推荐
- YUM安装RPM安装包时报错Could not open/read file:///mnt/repodata/repomd.xml
- yum install 报错[Errno 14] curl#37 - Couldn't open file /mnt/repodata/repomd.xml
- file:///mnt/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/Server/repodata/r
- CentOS yum install出现问题,Could not open/read file:///mnt/cdrom/repodata/repomd.xml
- [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-nux.ro" 解决
- GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
- yum安装失败[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
- yum出错:Error: failure: repodata/filelists.xml.gz from google-chrome: [Errno 256] No more mirrors to try.
- https://packages.elastic.co/elasticsearch/2.3/centos/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22
- yum安装过程中报错:repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other 解决办法
- yum错误:file://media/CentOS_5.2_Final/repodata/repomd.xml:[Error 5]......Cannot retrieve repository metadata(repomd.xml) for repos
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- [linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.
- yum 源问题:repodata/repomd.xml 404 Not Found
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- 获取 GPG 密钥失败:[Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora
- [ERROR]-Error: failure: repodata/filelists.xml.gz from addons: [Errno 256] No more mirrors to try.
- yum 的 repodata/primary.xml.gz from ascnew: [Errno 256] No more mirrors to try. 的问题
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle