问题描述:大概是某次重启虚拟机之后,隔段时间就会弹出一个异常提示框,会一直重复叠加弹框,提示
There was a (prossbily temporary)problem connection to a software source.
please check the detailed error for futher details.
更多信息显示:
Cannot find a valid baseurl for repo:base
没有具体是什么进程引起的,在网上查了很多都不符合,最后试了下面的方法,不在弹框了,万幸,算是解决了。感谢~
转载:https://blog.youkuaiyun.com/weixin_42289193/article/details/85868722
问题描述:最近在学习Linux使用yum安装软件,出现如下错误
Loaded plugins:fastest mirror,security
Determing fastest mirrors
YumRepo Error:All mirror URLs are not using ftp,http[s] or file.
Eg.Invaliad release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error:Cannot find a valid baseurl for repo:base
解决办法:网上查看了各种解决办法,排查网络原因等等。最终定位在 /etc/yum.repos.d/路径下,打开该路径,发现有如下文件:
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-Media.repo CentOS-Debuginfo.repo CentOS-Sources.repo 还有自己新建的cdrom.repo
结果发现自己新建的cdrom.repo文件的不起作用。查看一篇文章发现是CentOS-Base.repo这个文件的问题,只要把该文件名称改为不可用即可,mv CentOS-Base.repo CentOS-Base.repo.beifen
参考文章:(1)https://blog.youkuaiyun.com/qq_37922264/article/details/81054673