Problem: when using Yum to install docker and update Yum storage, the following error is reported, which causes Yum to break down
[root@localhost yum.repos.d]# vi docker.repo
[root@localhost yum.repos.d]# yum update
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
dockerrepo | 2.9 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
dockerrepo/7/primary_db | 34 kB 00:00
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
No packages marked for update
Solution: reinstall yum
[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps
[root@localhost ~]# rpm -qa |grep yum
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/yum-3.4.3-154.el7.centos.noarch.rpm
[root@localhost ~]# wget http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm
[root@localhost ~]# rpm -ivh yum-*
Preparing... ################################# [100%]
Updating/installing...
1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 33%]
2:yum-plugin-fastestmirror-1.1.31-4################################# [ 67%]
3:yum-3.4.3-154.el7.centos ################################# [100%]
[root@localhost ~]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
[root@localhost ~]# yum makecache
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/8): extras/7/x86_64/other_db | 108 kB 00:00
(2/8): extras/7/x86_64/filelists_db | 636 kB 00:01
(3/8): updates/7/x86_64/prestodelta | 771 kB 00:01
(4/8): extras/7/x86_64/prestodelta | 102 kB 00:02
(5/8): updates/7/x86_64/other_db | 621 kB 00:00
(6/8): updates/7/x86_64/filelists_db | 3.5 MB 00:06
(7/8): base/7/x86_64/filelists_db | 6.7 MB 00:08
(8/8): base/7/x86_64/other_db | 2.5 MB 00:09
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
Metadata Cache Created
Similar Posts:
- Loaded plugins: rhnplugin, security This system is not registered with RHN.
- This system is not registered with an entitlement server. You can use subscription-manager to reg…
- Python upgrade resulted in an error using yum
- [Solved] Yum makecache Error: Error: Cannot retrieve repository metadata (repomd.xml)
- Solve the error of centos7 using Yum installation software: cannot find a valid baseurl for repo: base / 7 / x86_ sixty-four
- Centos7.4 appears Yum command not found [How to Solve]
- How to Solve Yum Install Development Tools Error
- [Solved] Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error
- bash:yum:command not found [How to Solve]
- failure: repodata/filelists.sqlite.bz2 from teamviewer: [Errno 256] No more mirrors to try