In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "Linux system yum installation error Cannot find a valid baseurl for repo how to do", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system yum installation error Cannot find a valid baseurl for repo how to do" this article.
Yum install error
[root@localhost cmake-3.2.2] # yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6-"Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost cmake-3.2.2] # yum install gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&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 solution is as follows (modify dns configuration)
Vi / etc/resolv.conf
Add at the end of this document: nameserver 114.114.114.114
Install normally again:
[root@localhost cmake-3.2.2] # yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.btte.net
* updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
Resolving Dependencies
-> Running transaction check
-> Package gcc.x86_64 0RU 4.4.7-17.el6 will be installed
-- > Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
-- > Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
-- > Processing Dependency: libgcc > = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
-- > Processing Dependency: cloog-ppl > = 0.15 for package: gcc-4.4.7-17.el6.x86_64
-> Running transaction check
-> Package cloog-ppl.x86_64 015. 7-1.2.el6 will be installed
-> Processing Dependency: libppl_c.so.2 () (64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
-> Processing Dependency: libppl.so.7 () (64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
-> Package cpp.x86_64 0RU 4.4.7-17.el6 will be installed
-> Processing Dependency: libmpfr.so.1 () (64bit) for package: cpp-4.4.7-17.el6.x86_64
-> Package libgcc.i686 0RU 4.4.7-4.el6 will be updated
-> Package libgcc.x86_64 0RU 4.4.7-4.el6 will be updated
-> Package libgcc.i686 0RU 4.4.7-17.el6 will be an update
-> Package libgcc.x86_64 0RU 4.4.7-17.el6 will be an update
-> Package libgomp.x86_64 0RU 4.4.7-4.el6 will be updated
-> Package libgomp.x86_64 0RU 4.4.7-17.el6 will be an update
-> Running transaction check
-> Package mpfr.x86_64 0RU 2.4.1-6.el6 will be installed
-> Package ppl.x86_64 0RU 0.10.2-11.el6 will be installed
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Gcc x86 million 64 4.4.7-17.el6 base 10 M
Installing for dependencies:
Cloog-ppl x8631 64 0.15.7-1.2.el6 base 93k
Cpp x86 million 64 4.4.7-17.el6 base 3.7m
Mpfr x86 million 64 2.4.1-6.el6 base 157k
Ppl x8631 64 0.10.2-11.el6 base 1.3m
Updating for dependencies:
Libgcc i686 4.4.7-17.el6 base 114k
Libgcc x8631 64 4.4.7-17.el6 base 103k
Libgomp x8631 64 4.4.7-17.el6 base 134k
Transaction Summary
=
Install 5 Package (s)
Upgrade 3 Package (s)
Total download size: 16 M
Is this ok [y/N]:
The above is all the contents of the article "how to report an error in the installation of yum in Linux system Cannot find a valid baseurl for repo". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.