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:
- #yum -y update
- Loading "installonlyn" plugin
- Setting up Update Process
- Setting up repositories
- Reading repository metadata in from local files
- Traceback (most recent call last):
- File "/usr/bin/yum", line 29, in ?
- yummain.main(sys.argv[1:])
- File "/usr/share/yum-cli/yummain.py", line 94, in main
- result, resultmsgs = base.doCommands()
- File "/usr/share/yum-cli/cli.py", line 381, in doCommands
- return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
- File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
- return base.updatePkgs(extcmds)
- File "/usr/share/yum-cli/cli.py", line 673, in updatePkgs
- self.doRepoSetup()
- File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup
- self.doSackSetup(thisrepothisrepo=thisrepo)
- File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 341, in doSackSetup
- self.pkgSack.excludeArchs(archlist)
- File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 331, in excludeArchs
- sack.excludeArchs(archlist)
- File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 589, in excludeArchs
- obj = self.pc(rep,self.db2class(x))
- File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class
- y.checksum = {'pkgid': 'YES','type': db.checksum_type,
- File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__
- raise AttributeError, key
- 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:
- #rpm -qa | grep yum-metadata-parser
The following results are obtained:
- yum-metadata-parser-1.1.2-2.el5
- 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.
- #rpm -ev --nodeps yum-metadata-parser-1.1.2-2.el5
- #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:
- # Yum insatll yum-metadata-parser)
Method 2:
- #wget http://ftp.cse.yzu.edu.tw/pub/CentOS/5.2/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
- #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 ..
- Update list of Linux yum installation package
- CentOS yum Server Installation and use commands
- Linux yum powerful basic operations
- Fedora Yum command to query software packages and clear Cache
- Configure Linux YUM source settings to use a proxy