Yum-y update has been used in a variety of scenarios to solve the problem.

Source: Internet
Author: User

Yum-y update has been developing for a long time. Here I will share my personal understanding. Here I will talk about yum-y update.

When yum-y update is used today to update the Linux CentOS 5.1 system installed on the host security module, half of the update suddenly stops. when yum-y update is used again in the future, the update cannot be performed, and the following updates always appear:

 
 
  1. #yum -y update  
  2. Loading "installonlyn" plugin  
  3. Setting up Update Process  
  4. Setting up repositories  
  5. Reading repository metadata in from local files  
  6. Traceback (most recent call last):  
  7.  File "/usr/bin/yum", line 29, in ?  
  8.    yummain.main(sys.argv[1:])  
  9.  File "/usr/share/yum-cli/yummain.py", line 94, in main  
  10.    result, resultmsgs = base.doCommands()  
  11.  File "/usr/share/yum-cli/cli.py", line 381, in doCommands  
  12.    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)  
  13.  File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand  
  14.    return base.updatePkgs(extcmds)  
  15.  File "/usr/share/yum-cli/cli.py", line 673, in updatePkgs  
  16.    self.doRepoSetup()  
  17.  File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup  
  18.    self.doSackSetup(thisrepothisrepo=thisrepo)  
  19.  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 341, in doSackSetup  
  20.    self.pkgSack.excludeArchs(archlist)  
  21.  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 331, in excludeArchs  
  22.    sack.excludeArchs(archlist)  
  23.  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 589, in excludeArchs  
  24.    obj = self.pc(rep,self.db2class(x))  
  25.  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class  
  26.    y.checksum = {'pkgid': 'YES','type': db.checksum_type,   
  27.  File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__  
  28.    raise AttributeError, key  
  29. AttributeError: CHECKSUM_VALUE 

I thought, it's really bad. How should I do this... yum clean all cannot be used to solve the problem. After a hundred attempts, the following solutions have been completed:

 
 
  1. #rpm -qa | grep yum-metadata-parser 

The following results are obtained:

 
 
  1. yum-metadata-parser-1.1.2-2.el5  
  2. yum-metadata-parser-1.0-8.fc6 

It is strange how there are two security issues, which must be caused by the incomplete security after the computer, and this suite is a question of appeal, so remove the two suites first.

 
 
  1. #rpm -ev --nodeps yum-metadata-parser-1.1.2-2.el5  
  2. #rpm -ev --nodeps yum-metadata-parser-1.0-8.fc6 

There are two ways to remove the yum-metadata-parser-1.1.2-2.el5 security back:
Method 1:

  1. # Yum insatll yum-metadata-parser) 

Method 2:

 
 
  1. #wget http://ftp.cse.yzu.edu.tw/pub/CentOS/5.2/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm  
  2. #rpm -iv yum-metadata-parser-1.1.2-2.el5.i386.rpm 


After yum-metadata-parser is installed, use yum-y update to update the data. The above problem is no longer displayed ..

  1. Update list of Linux yum installation package
  2. CentOS yum Server Installation and use commands
  3. Linux yum powerful basic operations
  4. Fedora Yum command to query software packages and clear Cache
  5. Configure Linux YUM source settings to use a proxy

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.