Tag Archives: extras

Centos8 Install Failed to synchronize cache for repo ‘AppStream’, ignoring this repo.

Problem: Centos8 installation software appears
 
Cenos-8-appstream 28 B/s | 38 B 00:01
cenos-8-base 111 B/s | 38 B 00:00
cenos-8-extras 114 B/s | 38 B 00:00
Failed to synchronize cache for ‘AppStream’, ignoring this repo.
Failed to synchronize cache for repo ‘BaseOS’, ignoring this repo.
Failed to synchronize cache for repo ‘extras’, ignoring this repo.
No matches found.
 
————————————————————————————————–
Solution: Go to the configuration file and open /etc/yum.repos. D to change basEURl to the address of Ali Cloud.
cd /etc/yum.repos.d
vi CentOS-Base.repo
Change ## to the following
CentOS-Base.repo [BaseOS] name=CentOS-$releasever – Base baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
vi CentOS-AppStream.repo
## CentOS-AppStream.repo [AppStream] name=CentOS-$releasever – AppStream baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
 
The DNF command or yum command can be executed after modification
DNF Clean All # clears all cache files
DNF Makecache # make metadata cache
 
Refer to the link: https://my.oschina.net/u/930279/blog/3112152/print