由于一不小心更改了DNS,导致yum install PackageName报错“Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again”看了下fedora.repo没什么异常啊。google下,说在/etc/hosts里添加
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora.
原创
©著作权归作者所有:来自51CTO博客作者varynerd的原创作品,请联系作者获取转载授权,否则将追究法律责任
80.239.156.215 mirrors.fedoraproject.org
213.129.242.84 mirrors.rpmfusion.org
再用yum install PacgageName还报错。PYCURL ERROR 6郁闷啊,找了半天才找到http:///libcurl/c/libcurl-errors.html “CURLE_COULDNT_RESOLVE_HOST (6)
Couldn't resolve host. The given remote host was not resolved."。一想不对啊,在hosts里添加了应该不解析啊。估计hosts没起作用。service network restart 。在次安装报PYCURL ERROR 7。唉,
”Failed to connect() to host or proxy.”
Loaded plugins: presto, refresh-packagekit
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-13&arch=i386 error was
14: PYCURL ERROR 7 - ""
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-free. Please verify its path and try again
把hosts里的rpmfusion注释掉.OK了,不容易啊,就之小问题搞了半天。DNS 8.8.8.8很好
说下rpmfusion基本上你所需的软件里面都有,很好,这个源不错的说。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Fix the “The repository no longer has a Release file” error on Ubuntu 23.04
背景信息在Ubuntu 23.04操作系统上执行apt-get update命令更新操作系统时,得到以下错误# apt-get updateIgn:1 http://mirrors.aliyun.com/ubuntu lunar InReleaseIgn:2 http://mirrors.aliyun.com/ubuntu lunar-updates InReleaseIgn:3 http:
ubuntu 23.04 apt mirrors.aliyun.com apt-get update -
Cannot retrieve metalink for repository
Cannot retrieve metalink for repository: epel. Please verify its path and try again
Centos Linux Repo metalink mirrorlist
















