Centos8.2 yum镜像过期替换新源

yum 安装软件包的时候包下面的错

s this ok [y/N]: 
Didn't install any keys
Public key for docker-buildx-plugin-0.14.0-1.el8.x86_64.rpm is not installed. Failing package is: docker-buildx-plugin-0.14.0-1.el8.x86_64
 GPG Keys are configured as: https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Public key for docker-ce-26.1.3-1.el8.x86_64.rpm is not installed. Failing package is: docker-ce-3:26.1.3-1.el8.x86_64
 GPG Keys are configured as: https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Public key for docker-ce-cli-26.1.3-1.el8.x86_64.rpm is not installed. Failing package is: docker-ce-cli-1:26.1.3-1.el8.x86_64
 GPG Keys are configured as: https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Public key for docker-ce-rootless-extras-26.1.3-1.el8.x86_64.rpm is not installed. Failing package is: docker-ce-rootless-extras-26.1.3-1.el8.x86_64
 GPG Keys are configured as: https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Public key for docker-compose-plugin-2.27.0-1.el8.x86_64.rpm is not installed. Failing package is: docker-compose-plugin-2.27.0-1.el8.x86_64
 GPG Keys are configured as: https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED

查询了一下资料,应该是yum源过期了,没用了,需要替换新的镜像包
我是先把原repo文件bak一下
然后下载镜像的镜像

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all
yum makecache

重新安装下包,可以安装了
在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值