Tag Archives: centos8

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
 

Alicloud centos8 reports an error “error: failed to synchronize cache for repo ‘EPEL modular'”

ali cloud has been online centos8 system, the 8 series is relatively new, ali cloud bug is still there, use yum unexpectedly can not, the system default did not install git, want to install yum install git directly Error “Error: Failed to synchronize cache for repo ‘epel-modular'”, extend source Error, baidu has no solution, it can only solve by itself!

the solution is simple:

scheme 1: directly delete /etc/yum.repos. D (first backup)

directory epel beginning file

would be yum.

scheme 2:

yum succeeded but the prompt program does not exist and cannot install

do not delete /etc/yum.repos. D inside the file

edit

vi /etc/resolv.conf

and

nameserver 114.114.114.114

save

and then execute yum successfully

ali cloud recently launched centos8 can’t yum, DNS can’t resolve the extended library domain name. Hey, their family is a little careless about their operation and maintenance