Catechism network God thinker teacher class materials with deployment tools, comes with the liunx system centos7 yum found that can not install software, such as docker Solution
First we install the virtual machine boot system centos7 Trying to install any software will report a warehouse error
First thought is to update yum yum update Since the repositories are not correct update will not work
The second counter is to update the warehouse.
utilizationmv /etc// /etc//
wget -O /etc// /repo/
But it turns out that the minimized version of wget isn't installed, still have to fix the repository problem
Viewing repositories yum pepolist all will show you many repositories, some of which may be disabled.
To enable a repository you just need to change enabled = 0 to 1 in the repository's configuration file, but surely that's not the problem, the configurator won't ship anything.
Thought for a moment that if there is a problem with the repository source , we'll just copy over the normal repository content for a bit, so I'll copy over a configuration in our cloud hosting's files.
Modify this repository
vi
# CentOS- # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base - failovermethod=priority baseurl=http:///centos/$releasever/os/$basearch/ http:///centos/$releasever/os/$basearch/ http:///centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http:///centos/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates - failovermethod=priority baseurl=http:///centos/$releasever/updates/$basearch/ http:///centos/$releasever/updates/$basearch/ http:///centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http:///centos/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras - failovermethod=priority baseurl=http:///centos/$releasever/extras/$basearch/ http:///centos/$releasever/extras/$basearch/ http:///centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http:///centos/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus - failovermethod=priority baseurl=http:///centos/$releasever/centosplus/$basearch/ http:///centos/$releasever/centosplus/$basearch/ http:///centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http:///centos/RPM-GPG-KEY-CentOS-7 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib - failovermethod=priority baseurl=http:///centos/$releasever/contrib/$basearch/ http:///centos/$releasever/contrib/$basearch/ http:///centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http:///centos/RPM-GPG-KEY-CentOS-7
I deleted the whole thing and pasted in the correct one, then yum updated normally. Problem solved
To summarize, there is a problem with the configuration of the repository We will take a correct repository file to replace it, because this on the minimized installation of so much trouble, if we are correctly installed with the basic installation of network services, the system is not so troublesome!