Resolve Linuxyum failure

Source: Internet
Author: User
Linuxyum failed to solve the problem: The yum installer is required in CentOS5.5, and the following error occurs: TherewasaproblemimportingoneofthePythonmodulesrequiredtorunyum. theerrorleadingtothisproblem... linux yum fails to solve the problem: in CentOS 5.5, you need to use the yum installer. the following error occurs: There was a problem importing one of the Python modulesrequired to run yum. the error leading to this problem was:/usr/lib/python2.4/site-packages/_ sqlitecache. so: wrong ELF class: ELFCLASS32Please install a package which provides this module, orverify that the module is installed correctly. solution: go to dog search because the python version is incompatible. you can uninstall the original yum and reinstall it. 1. determine the current CentOS version [root @ centos-74 yum. repos. d] # lsb_release-aLSB Version: core-3.1-amd64: core-3.1-ia32: core-3.1-noarch: graphics-3.1-amd64: graphics-3.1-ia32: graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final) Release: 5.5 Codename: final can see that the current CentOS version is 5.5; [root @ centos-74 yum. repos. d] # uname-aLinux centos-74 2.6.18-194. el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux: the installed X86_64 system is displayed. 2. install yum program 2.1 and download the required rpm package from NetEase's mirrors; wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm This file has been downloaded from NetEase site has not been, only python-iniparse-0.2.3-6.el5.noarch.rpm, but the python-iniparse-0.2.3-6.el5.noarch.rpm will have compatibility problems with the other three files, so, put the dog search, download the python-iniparse-0.2.3-4.el5.noarch.rpmwget from other places http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmwget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.centos.x86_64.rpm2.2 Install the downloaded package rpm-ivh -- nodeps python-iniparse-0.2.3-4.el5.noarch.rpm yum-3.2.22-40.el5.centos.noarch.rpm yum-metadata-parser-1.1.2-4.el5.centos.x86_64.rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm somehow, after the above command is executed only prompts that the first package python-iniparse-0.2.3-4.el5.noarch.rpmPreparing is installed... ######################################## ### [100%] package python-iniparse-0.2.3-4.el5.noarch is already installed re-install the remaining package, rpm-ivh -- nodeps yum-3.2.22-40.el5.centos.noarch.rpm yum-metadata-parser-1.1.2-4.el5.centos.x86_64.rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpmPreparing... ######################################## ### [100%] 1: yum-metadata-parser ################################### ####### [33%] 2: yum-fastestmirror ##################################### ###### [67%] 3: yum ####################################### #### [100%] run the command rpm-qa | grep yum to view the installation result [root @ centos-74 zhao] # rpm-qa | grep yumyum-3.2.22-40.el5.centosyum-fastestmirror-1.1.16-21.el5.centosyum-metadata-parser-1.1.2-4.el5 [root @ centos-74 zhao] # import the certificate rpm-import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5 Let yum use NetEase's source: # cd/etc/yum. repos. d/# wget http://mirrors.163.com/.help/CentOS-Base-163.repo Edit the CentOS-Base-163.repo, add # before all your list, replace all $ releasever with 5, and save. # After yum clean metadata is complete, yum can work normally and update yum # yum-y upgrade

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.