[Yum] What is "non-caching mode" and how do I get there?

Nick nick at null.net
Thu Dec 25 17:37:06 UTC 2003


Yup, blowing away /var/cache/yum/*, then doing a `yum update yum` then a `yum update` fixed it for me.

-Nick

--
Nicholas Crawford <nick at null.net> / AIM: xxneoaeonxx / neoaeon at EFnet IRC
4096/1024 Diffie-Hellman/DSS PGP key ID: 0xE62F5E9A fingerprint:
     DA6F 3DC5 3D24 5FFB 9C40  DFD6 F002 11DC E62F 5E9A
PGP keys via key server or http://www.angelfire.com/linux/neoaeon/pgp/

I think that's because you are trying to clean when it's confused because
there are no local files to look at to see what to clean...  Try running
'yum update' again now - it should work.  Then 'yum clean' should work as
intended.

-Jeff 

> -----Original Message-----
> From: yum-bounces at lists.dulug.duke.edu 
> [mailto:yum-bounces at lists.dulug.duke.edu] On Behalf Of Joe Cooper
> Sent: Friday, December 12, 2003 4:55 PM
> To: Yellowdog Updater, Modified
> Subject: RE: [Yum] What is "non-caching mode" and how do I get there?
> 
> Hi Jeff,
> 
> Thanks for the quick response.
> 
> Already tried that (and I should have mentioned it):
> 
> [root at oppenheimer yum]# yum -d 5 -e 5 clean Gathering header 
> information file(s) from server(s)
> Server: Fedora Core 1 - i386 - Base
> CacheDir: /var/cache/yum/base
> Error - /var/cache/yum/base/header.info cannot be found 
> Please run yum in non-caching mode to correct this header.
> 
> 
> One extra line of 'crap'.  Not much help there.
> 
> -d 9 has nothing to add.  The problem here, I think, is that 
> yum doesn't think it's doing anything wrong...so not much in 
> the way or errors to report.  ;-)
> 
> "Jeff Sheltren" <sheltren at cs.ucsb.edu> wrote ..
> > Hi Joe, out of curiosity what gets output when you increase the 
> > debug/error output from yum (using the -d -e flags)?  I think 
> > something like 'yum -d
> > 5
> > -e 5 update' will print out a bunch more 'crap'.  Maybe 
> this will help 
> > trace the problem.
> > 
> > -Jeff
> > 
> > > -----Original Message-----
> > > From: yum-bounces at lists.dulug.duke.edu 
> > > [mailto:yum-bounces at lists.dulug.duke.edu] On Behalf Of Joe Cooper
> > > Sent: Friday, December 12, 2003 4:19 PM
> > > To: yum at lists.dulug.duke.edu
> > > Subject: [Yum] What is "non-caching mode" and how do I get there?
> > > 
> > > Hi Seth and all,
> > > 
> > > I've got a weird bit of behavior (weird to me, anyway, though I'm 
> > > getting what must look to someone like a sane error
> > > message) after an upgrade of an RH9 box to Fedora Core 1 
> via yum.  I 
> > > started getting this error from yum:
> > > 
> > > [root at oppenheimer root]# yum update
> > > Gathering header information file(s) from server(s)
> > > Server: Fedora Core 1 - i386 - Base
> > > Traceback (most recent call last):
> > >   File "/usr/bin/yum", line 60, in ?
> > >     yummain.main(sys.argv[1:])
> > >   File "yummain.py", line 188, in main
> > >   File "clientStuff.py", line 766, in 
> get_package_info_from_servers
> > >   File "clientStuff.py", line 103, in HeaderInfoNevralLoad
> > > ValueError: unpack list of wrong size
> > > 
> > > So I decided (brilliantly, if I do say so myself), to delete the 
> > > /var/cache/yum/* directories.  This has worked in the 
> distant past 
> > > when yum has had corrupted bits and complained about them, so I 
> > > figured it would work again.
> > > 
> > > Alas, it was not to be.  Now I get the following:
> > > 
> > > [root at oppenheimer yum]# yum clean all Gathering header 
> information 
> > > file(s) from server(s)
> > > Server: Fedora Core 1 - i386 - Base
> > > Error - /var/cache/yum/base/header.info cannot be found 
> Please run 
> > > yum in non-caching mode to correct this header.
> > > 
> > > This looks like very sane and sensible advice.  But my yum and 
> > > yum.conf man pages have nothing about a non-caching mode, 
> and a web 
> > > search only turns up a snippet of a clientStuff.py patch with 
> > > nothing about enabling this illusive mode.  The yum 
> --help mentions 
> > > the -C switch for enabling caching, but that doesn't seem 
> the right 
> > > solution since yum is telling me to do the opposite.
> > > 
> > > Anyone have a clue they can lend me?
> > > 
> > > BTW-The yum is version 2.0.4-2 as it comes from Fedora.
> > > 
> > > Thanks!
> > > --
> > > Joe Cooper <joe at swelltech.com>
> > > Web caching appliances and support
> > > http://www.swelltech.com
> > > 
> > 
> > _______________________________________________
> > Yum mailing list
> > Yum at lists.dulug.duke.edu
> > https://lists.dulug.duke.edu/mailman/listinfo/yum
> 
> Joe Cooper <joe at swelltech.com>
> Web caching appliances and support
> http://www.swelltech.com
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum/attachments/20031225/c0ef88e8/attachment-0001.htm 


More information about the Yum mailing list