阿里云服务器CentOS8.0执行yum命令出现“Error: Failed to synchronize cache for repo ‘AppStream‘”问题解决"/>
阿里云服务器CentOS8.0执行yum命令出现“Error: Failed to synchronize cache for repo ‘AppStream‘”问题解决
当执行yum命令出现如下的情况:
解决方法:
1.进入到/etc/yum.repos.d目录里面。
2.分别修改CentOS-AppStream.repo、CentOS-Base.repo、CentOS-Extras.repo、CentOS-PowerTools.repo文件中的baseurl。
CentOS-AppStream.repo
# CentOS-AppStream.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# 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, as a fall back you can try the
# remarked out baseurl= line instead.
#
#[AppStream]
name=CentOS-$releasever - AppStream
#baseurl=/$contentdir/$releasever/AppStream/$basearch/os/
更多推荐
阿里云服务器CentOS8.0执行yum命令出现“Error: Failed to synchronize cache for repo ‘AppStream‘
发布评论