[ATrpms-users] Re: rpmdb problem (solved)

daryl faulds darylfaulds at yahoo.com
Fri Jun 18 17:25:22 CEST 2004


--- Axel Thimm <Axel.Thimm at ATrpms.net> wrote:
> switching to the list, this may be of interest to
> other folks, too.
> 
> On Wed, Jun 16, 2004 at 07:34:35PM -0700, daryl
> faulds wrote:
> > > You tried
> > > 
> > > rm -f /var/lib/rpm/__*
> > > LD_ASSUME_KERNEL=2.4.1 rpm --rebuilddb
> 
> > The failure seems to be a change at 
> > Server: Fedora Core 1 - i386 - Base
> > 
> > [root at localhost 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 how do I blow off Fedora Core 1 - i386 - Base
> and
> > get atrpms to work?
> 
> So the database is restored, and rpm works, right?
> 
> You need the base packages, of course. The above
> looks like yum got
> only a partial download. I have also seen such
> errors reported, when
> there are syntax errors in the yum.conf file.
> 
> I suggest to uninstall any yum and apt you have in
> your box, make sure
> rpm -qa etc. works fine and then reinstall
> atrpms-kickstart. The
> latest version does not require you to upgrade rpm
> _before_ it can be
> run. Should you still get stale locks after
> upgrading, fix it with
> 
> rm -f /var/lib/rpm/__*
> 
> Or you can keep Red Hat's rpm and yum and simply
> adjust the yum.conf
> file as outlined on http://atrpms.net/install.html
> -- 
> Axel.Thimm at ATrpms.net
> 

> ATTACHMENT part 2 application/pgp-signature 

No, that's not the solution and
atrpms.net/install.html fails too.

Here's the solution:

The yum.conf file that came with my installed Fedora
Core 1 distribution and that worked until a few days
ago had this:

[base]
name= Fedora Core $releasever -$basearch -Base
baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever

That yum.conf file fails now.

When I remove that and substitute:

[base]
name= Fedora Core $releasever -$basearch -Base
baseurl=http://mirror.hiway.net/redhat/fedora/linux/core/$releasever/$basearch/os

everything works fine and yum update succeeds.

When the update succeeds you find included in the
update is a new yum.conf file showing the baseurl for
redhat as:

http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/


Checking with a web browser, sure enough,
http://fedora.redhat.com/releases gives a 404 error
(page not found) whie the new URL
http://download.fedora.redhat.com/pub/fedora/linux/core
is functional.

Daryl



		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 



More information about the atrpms-users mailing list