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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程