yum update of yum breaks yum

william noble <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On CentOS 4 I did a 'yum -y update yum'  from 
yum.noarch 2.4.3-1.c4 to yum.noarch 2.4.3-4.el4.centos. The update succeeded, but the next invocation of yum warned:
Warning: cache file is version 6, we need 10, will regenerate
and failed (see below). How can I repair this?

[root@yyyyyyyy ]# cat /etc/redhat-release 
CentOS release 4.3 (Final)
[root@yyyyyyyy ]# uname -a
Linux yyyyyyyy.zzz 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686 i686 i386 GNU/Linux
[root@yyyyyyyy]# rpm -q glibc python
glibc-2.3.4-2.19
python-2.3.4-14.2

[root@yyyyyyyy ]# yum update yum
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum to pack into transaction set.
yum-2.4.3-4.el4.centos.no 100%  |=========================|  18 kB    00:00     
---> Package yum.noarch 0:2.4.3-4.el4.centos set to be updated
--> Running transaction check
--> Processing Dependency: yum-metadata-parser for package: yum
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum-metadata-parser to pack into transaction set.
yum-metadata-parser-1.0-8 100% |=========================| 3.9 kB    00:00 ---> Package yum-metadata-parser.i386 0:1.0-8.el4.centos set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch        Version          Repository        Size 
=============================================================================
Updating:
 yum                     noarch     2.4.3-4.el4.centos  base              386 k
Installing for dependencies:
 yum-metadata-parser     i386       1.0-8.el4.centos  base               23 k

Transaction Summary
=============================================================================
Install      1 Package(s)          
Update       1 Package(s)         
Remove       0 Package(s)         
Total download size: 409 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): yum-2.4.3-4.el4.ce 100% |=========================| 386 kB    00:00     
(2/2): yum-metadata-parse 100% |=========================|  23 kB    00:00     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: yum-metadata-parser          ######################### [1/3] 
  Updating  :  yum                                                    [2/3]warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
  Updating  : yum                          ######################### [2/3] 
  Cleanup   : yum                          ######################### [3/3]

Dependency Installed: yum-metadata-parser.i386 0:1.0-8.el4.centos
Updated: yum.noarch 0:2.4.3-4.el4.centos
Complete!

[root@yyyyyyyy ]# yum list updates
Setting up  repositories
Reading repository metadata in from local files
Warning: cache file is version 6, we need 10, will regenerate

(process:27666): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL' failed

(process:27666): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL' failed
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 97, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 512, in doCommands
    ypl = self.returnPkgLists()
  File "/usr/share/yum-cli/cli.py", line 1176, in returnPkgLists
    ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
  File "__init__.py", line 904, in doPackageLists
  File "/usr/share/yum-cli/cli.py", line 75, in  doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "__init__.py", line 260, in doSackSetup
  File "repos.py", line 277, in populateSack
  File "/usr/lib/python2.3/site-packages/sqlitecachec.py", line 40, in getPrimary
    self.repoid))
TypeError: Can not create index on requires table: near "NOT": syntax error

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

_______________________________________________
Yum mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.