Centos6.8 yum仓库配置问题记录及暂时解决方法

在配置Hadoop集群时遇到CentOS 6.8的yum仓库问题,由于官方源停止维护,需更换为清华大学镜像源。通过修改/etc/yum.repos.d/CentOS-Base.repo文件,将源地址更改为国内镜像,并执行yum clean all, yum makecache进行清理和缓存更新,以解决yum安装问题。" 132562172,10512040,Nacos服务注册与配置实战指南,"['Java', '微服务', 'Nacos', '配置管理', '服务发现']
摘要由CSDN通过智能技术生成

@【Centos6.8 yum仓库配置问题记录及暂时解决方法】

1.问题记录:

配置Hadoop集群时提示rsync无效,测试无法使用yum命令安装,遂回头安装yum源。出现以下问题:
(1)CentOS 6.x 版本在2020年11月30日停止了维护更新,官方源已经没有用了,部分镜像源也没用了,需要替换新的源。
(2)制作本地yum源时,ISO挂载重启失效,修改配置文件/etc/fstab映射关系后,仍无法正常安装(挂在正常)

// 
[root@hadoop102 yum.repos.d]# vi CentOS-Base.repo
[root@hadoop102 yum.repos.d]# yum clean all
已加载插件:fastestmirror, refresh-packagekit
Cleaning repos: base extras updates
清理一切
Cleaning up list of fastest mirrors
[root@hadoop102 yum.repos.d]# yum repolist
已加载插件:fastestmirror, refresh-packagekit
Determining fastest mirrors
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/x86_64/6/extras/mirrorlist.txt
base                                                                                                                  | 4.0 kB     00:00 ... 
base/primary_db                                                                                                       | 4.7 MB     00:00 ... 
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/x86_64/6/updates/mirrorlist.txt
仓库标识                                                       仓库名称                                                                 状态
base                                                           CentOS-local                                                             6,696
extras                                                         CentOS-6 - Extras                                                            0
updates                                                        CentOS-6 - Updates                                                           0
repolist: 6,696
[root@hadoop102 yum.repos.d]# yum install httpd
已加载插件:fastestmirror, refresh-packagekit
设置安装进程
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/x86_64/6/extras/mirrorlist.txt
错误:Cannot find a valid baseurl for repo: extras
2 尝试解决方法
  1. 1.关联网络yum源
    cd /etc/yum.repos.d/
    vi CentOS-Base.repo
    把源站点配置改为国内清华大学站点https://mirrors.tuna.tsinghua.edu.cn/centos-vault

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值