Centos 8 阿里yum源配置
【摘要】 Centos 8 阿里yum源配置
1、CentOS-AppStream.repo配置文件,注释原有url,加入以下url
# CentOS-Linux-AppStream.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[AppStream]
name=CentOS-$releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
2、编辑CentOS-Base.repo配置文件,注释原有url,加入以下url
# CentOS-Linux-BaseOS.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[BaseOS]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=https://mirrors.aliyun.com/centos/8/extras/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[root@master4-server yum.repos.d]# yum update
Last metadata expiration check: 0:00:09 ago on Mon 21 Mar 2022 08:45:44 PM CST.
Error:
Problem 1: cannot install the best update candidate for package authselect-compat-1.2.2-2.el8.x86_64
- nothing provides authselect(x86-64) = 1.2.2-3.el8 needed by authselect-compat-1.2.2-3.el8.x86_64
Problem 2: cannot install the best update candidate for package bind-libs-lite-32:9.11.26-3.el8.x86_64
- nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by bind-libs-lite-32:9.11.36-3.el8.x86_64
解决方案:
yum update --allowerasing --skip-broken --nobest
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)