YumRepo Error: All mirror URLs are not using ftp, http[s] or file

有台机器使用Yum的时候,报错如下:

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. $releasever is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

猜测:

1.DNS问题

2. $releasever 取不到

1.改了DNS后测试,仍然有问题

2.查看/etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

由于yum读取mirrorlist的时候,$releasever取不到,导致url访问失败。

那么解决方法也简单,要么把$releasever弄好,

要么直接修改CentOS-Base.repo文件,替换$releasever为6。(因为我的是centos6)。

怎么修复$releasever我还不清楚,懂了之后补上。

时间: 2024-08-15 13:58:48

YumRepo Error: All mirror URLs are not using ftp, http[s] or file的相关文章

Nginx错误:nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified)

执行nginx -s reload命令: nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified) 错误原因: Nginx 尚未启动导致,执行 start nginx 命令开启Nginx

运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory

运行编译后的程序报错  error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory -------------------------------------------------------------------------------------------------------------------------------------

error: while loading shared libraries : countlib.so : cannnot open shared object file : No such fil

问题内容: error: while loading shared libraries : countlib.so : cannnot open shared object file : No such file or directory 我们找不到文件 或目录 解决方法: sudo cp countlib.so  /usrr/lib/

./ProjectC: error while loading shared libraries: libProjectC.so: cannot open shared object file: No such file or directory

时间: 2014-7-20   11:30 地点: andon 问题: 研究xu库文件的创建,编译-链接通过后,执行文件时./ProjectC 不能打开动态链接库 解决:makefile文件中,库文件 libProjectC.so已经添加到./install中,但还是报错 #lib directory         LIBDIR = -L ./         LIBDIR = -L ../install #lib which the link program need         LIB

Error : Must specify a primary resource (JAR or python or R file)

spark-submit 报错:must specify resource 取消关注 | 1 ... 我的submit.sh内容: /bin/spark-submit \ --class abc.package.manclass \ --master spark:10.30.40.50:7077 \ --executor-memory 2g /home/abc/abc.jar 然后报错,Error : Must specify a primary resource (JAR or python

nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)

在重启nginx服务的时候,出现了这个错误. [[email protected] etc]# nginx -c /var/run/nginx/nginx.pid nginx: [emerg] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 解决办法: [[email protected] etc]# nginx -c /etc/nginx/nginx.conf 其他的一些解决办法: 1.进

ERROR 23 (HY000) at line 29963: Out of resources when opening file

在还原数据库时报错,报错信息如下:(库中的表比较多) 解决方法: 在root下修改ulimit值 [[email protected] export]# ulimit -acore file size          (blocks, -c) 0data seg size           (kbytes, -d) unlimitedscheduling priority             (-e) 0file size               (blocks, -f) unlim

java 罕见的依赖报错 jstat: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

java 都用了N长时间了,突然,意外地发现有一个依赖的so文件从来没找见过 # ldd /usr/bin/java linux-vdso.so.1 =>  (0x00007fffba769000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038c4000000) libjli.so => not found libdl.so.2 => /lib64/libdl.so.2 (0x0000003da7c00000) libc

Cocos2d-x 3.1.1 学习日志17--移植出现error C1083: 无法打开包括文件:“extensions/ExtensionMacros.h”: No such file or

今天在做2.x移植到3.1.1的时候候导入扩展包出现了错误,经过多方查找,最后终于把问题解决了,分享出来,给大家提供一个参考. 第一步,我们需要导入三个包,导入方式:解决方案(右键)->添加->现有项目 导入第一个libGUI.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\cocos\ui\proj.win32) 导入第二个libExtensions.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\extension