centos-linux-release-7.4.1708-(Core)-Yum Reload

Source: Internet
Author: User

Liao Jianxi Time: November 17, 2017 monsters are not refined, only strange too young. I'm a newbie, and I've erased Yum. The solution is divided into trilogy

Part One (what's missing, what's missing, yum under Yumx)

Download Yum source package and install

Step1:wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz# get yum Install package

Step2 Tar zxvf yum-3.4.3.tar.gz

Step3 CD yum-3.4.3

Then run./yummain.py Install yum The following error appears

Question ###./yummain.py Traceback (most recent): File "./yummain.py", line-in <module> from yum import Error S file "/root/nagios/yum-3.4.3/yum/init. Py", line-in <module> import config File "/root/nagios/ yum-3.4.3/yum/config.py ", line A, in <module> from parser import configpreprocessor, Varreplace File"/root/nagios /yum-3.4.3/yum/parser.py ", line 4, <module> import urlgrabber importerror:no module named Urlgrabber

Question ###./yummain.py Traceback (most recent): File "./yummain.py", line-in <module> from yum import Error S file "/root/nagios/yum-3.4.3/yum/init. Py", line-in <module> import rpmsack File "/root/nagios/yum-3 .4.3/yum/rpmsack.py ", line <module> import yum.depsolve File"/root/nagios/yum-3.4.3/yum/depsolve.py ", Line a <module> from transactioninfo import transactionmember File "/root/nagios/yum-3.4.3/yum/ transactioninfo.py ", line +, in <module> from sqlitesack import yumavailablepackagesqlite File"/root/nagios/ yum-3.4.3/yum/sqlitesack.py ", line <module> import Yumrepo File"/root/nagios/yum-3.4.3/yum/yumrepo. Py ", Line <module> Import sqlitecachec importerror:no module named SQLITECACHEC

Part II (Chairman Mao said: "No conditions, create conditions")

Install Python-urlgrabber,python-pycurl,yum-metadata-parser First

The following are the RPM installation package connections I found;

http://mirrors.163.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-8.el7.noarch.rpm

http://mirrors.163.com/centos/7/os/x86_64/Packages/python-pycurl-7.19.0-19.el7.x86_64.rpm

http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

Create a new folder and get three installation packages RMP-IVH * #进行安装

If the connection fails recommend to: http://tel.mirrors.163.com/ inside to find

Spare: http://rpm.pbone.net/

After the installation is successful, go to the yum-3.4.3 folder and run./yummain.py Install Yum

If the following error occurs./yummain.py CRITICAL:yum.cli:Config error:error accessing file for Config file:///etc/yum.conf

Workaround: Create yum.conf touch/etc/yum.conf and then run./yummain.py Install Yum

centos-linux-release-7.4.1708-(Core)-Yum Reload

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.