I’m running the install tree command on the machine and there is an error:
[Errno 256] No more mirrors to try
The Internet says you should follow the following two commands:
#yum clean all
#yum makecache
There was no error on the first instruction, but there was an error on the second instruction
Cannot find a valid baseurl for repo: base/7/x86_64
So the solution is to change the nameserver value by changing the resolv.conf
Unable to connect to the Internet. This is one of the host errors
#vim /etc/resolv.conf
Change the nameserver value to 8.8.8.8 or any other DNS value that can connect to the Internet
Then restart the network card
#service network restart
Problem solved!
Read More:
- Error reporting in CentOS 7 using yum
- Linux uses open source Yum to report error performing checksums
- Error: nothing to do in centos7’s Yum installation
- Alicloud CentOS 5 old version yum/ repomd.xml : [Errno 14] HTTP Error 404: Not Found
- How to Fix yum Install Error Loaded plugins: fastestmirror, refresh-packagekit, security
- Centos7 Yum error downloading packages:
- Centos8 Install Failed to synchronize cache for repo ‘AppStream’, ignoring this repo.
- Using JSON to report errors
- yum install Transaction Check Error
- Elememt UI introduces components on demand to report errors
- Using jgit to report errors: the solution of algorithm negotiation failure
- Using Lombok to compile and report errors
- How to Install Python 3 in Centos7 Quickly
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed
- Solution of idea using @ Autowired annotation to report errors
- Running Django manager.py report errors Error:111 connecting to 127.0.0.1:6379.connection refused
- Node.js Using port 80 to report errors in Linux
- Using jsoup to parse web pages and report null errors
- solve java.net.ConnectException : Connection refused:connect report errors
- CentOS install therapee and LibTiff