Execute the command under CentOS 7.6 64 bit: yum makeCache, report an error: There are no enabled repos
1. Execute the command in CentOS 7.6 64-bit: yum makeCache to update the cache of the yum source, and report an error: There are no enabled repos, as shown in Figure 1
[root@iZ8vb0tg9av3a17vlbfi28Z ~]# yum makecache loaded plugins: fastestmirror Loading mirror speeds from cached hostfile There are no enabled repos. Run "Yum repoliist all" to see the repos you have. To enable red hats subscription-manager repos --enable <repo> To enable custom repositories: yum-config-manager --enable <repo>
2. Decided to reinstall the 7.6 release package, first go to the Alibaba Yunyuan website, find the corresponding release package, and copy its link, as shown in Figure 2
3. Execute the following commands in sequence, as shown in Figure 3
wget https://mirrors.aliyun.com/centos/7.6.1810/os/x86_64/p ackages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm rpm -ivh --replacepkgs --replacefiles centos-release-7-6.1810.2.el7.centos.x86_64.rpm yum update
4. Execute the command: yum makeCache to update the cache of the yum source, no errors are reported, and it is in line with expectations, as shown in Figure 4
[root@iZ8vb0tg9av3a17vlbfi28Z ~]# yum makecache loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * Extras: Mirrors.HuaWeiCloud.com * updates: mirrors.huaweiicloud.com BASE | 3.6 KB 00:00 Extras | 3.4 KB 00:00 Updates | 3.4 KB 00:00 (1/8): Extras/7/x86_64/prestodelta | 47 KB 00:00 (2/8): EXTRAS/7/X86_64/Filelists_DB | 231 KB 00:00 (3/8): EXTRAS/7/X86_64/OTHER_DB | 118 KB 00:00 (4/8): Updates/7/X86_64/PresToDelta | 358 KB 00:00 (5/8): updates/7/x86_64/other_db | 351 KB 00:00 (6/8): updates/7/x86_64/filelists_db | 2.2 MB 00:00 (7/8): base/7/x86_64/other_db | 2.6 MB 00:00 (8/8): base/7/x86_64/filelists_db | 7.1 MB 00:04 metadata cache created



