Linux安装yum install lrzsz报错
作者:互联网
[root@itcast local]# yum install lrzsz
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
翻译后
[root@centos ~]# yum install lrzsz
已加载插件:fastestmirror refresh-packagekit,安全
设置安装进程
从缓存的主机文件加载镜像速度
YumRepo错误:所有的镜像url都不使用ftp, http[s]或文件。
如。无效的发布/回购/拱组合
删除没有有效镜像的镜像:/var/cache/yum/i386/6/base/mirrorlist.txt
解决方案如下:(依次执行2-6行的命令即可)
1、使用腾讯云的yum源
https://mirrors.cloud.tencent.com/help/centos.html
2、备份系统旧配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3、下载源配置 CentOS6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo
4、把http替换https
sed -i 's#http#https#g' /etc/yum.repos.d/CentOS-Base.repo
5、清除缓存
yum clean all
yum makecache
6、类似163的要做删除
rm /etc/yum.repos.d/CentOS6-Base-163.repo
标签:http,repos,lrzsz,repo,etc,Base,yum,报错 来源: https://www.cnblogs.com/liaoxiang/p/16359760.html