Just after installing CentOS 7. X through VMware 12, check the IP address of CentOS LAN using IP addr. It is found that there is no error when using Yum to install some toolkits
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 – “Couldn’t resolve host ‘ mirrorlist.centos.org ‘”
Error: Cannot find a valid baseurl for repo: base
The image list cannot be retrieved using yum. The solution is as follows.
1. CD/etc/sysconfig/network scripts enter this folder, and then check if there is ifcfg-ens33, sometimes ifcfg-eth0
2. VI ifcfg-ens33 enter the general mode of VI and move the cursor to onboot = No
3. Press “I” to enter the editing mode of VI, and change no to yes
4. After modification, press ESC to enter the general mode again, then press “:” to the bottom of the file, and then enter “WQ” (save to exit) after “:”
5. Restart CentOS and try IP addr and Yum again.
Add: if ifcfg-eth0 file is found in network scripts, change the following two items to the following, and finally restart.
ONBOOT=yes MM_ CONTROLLED=no
has a problem. The official account below is
.
Similar Posts:
- CentOS 7 network could not retrieve error [Solved]
- [Solved] Yum command error: could not retrieve mirrorlist http://mirrorlist.centos.org…
- [Solved] Linux yum: One of the configured repositories failed (Unknown), and yum doesn’t have.
- CentOS ping www.google.com Error: name or service not know
- Job for network.service failed because the control process exited with error code [How to Solve]
- [Solved] Device eth0 does not seem to be present,delaying initialization
- Couldn’t resolve host ‘mirrorlist.centos.org
- Bringing up interface eth0: Error: No suitable device found: no device found for connection ‘System eth0’. [FAILED]
- When centos7 uses yum, file contains no section headers
- [Solved] Centos6.8 yum Error: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid