In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares with you is about how to configure the network yum source in CentOS. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
After 1.yum makecache, the following error message is prompted:
File://media/CentOS/repodata/repomd.xml:%20[Errno%2014]%20Could%20not%20open/read%2
Solution:
What I configure is the yum source: wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
To solve the above problems, you need to comment out the following information:
Comment out the following in CentOS-Base-sohu.repo
# [addons]
# name=CentOS-$releasever-Addons-sohu.com
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
# baseurl= http://mirrors.sohu.com/centos/$releasever/addons/$basearch/
# gpgcheck=1
# gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5CentOS-Base-sohu.repo
two。 After the above problems have been solved, the following error report will be prompted:
File:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
The reason for the above problems is that the local yum source is enabled. Just close it.
Change the enabled=1 in / etc/yum.repos.d/CentOS-Media.repo to enabled=0.
After performing the above two steps, you can install yum-y install vim* correctly after executing it.
The above is how to configure the network yum source in CentOS. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.