Failed to synchronize cache for repo
sympton and log error:
check dnf log under /var/log/dnf.log, baseURL not found and need to change the baseURL that available
soution :
curl -o /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo