Re: yum db lossage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/10/06, Paul Howarth <paul@xxxxxxxxxxxx> wrote:
Wolfgang S. Rupprecht wrote:
> The yum db just killed itself on my x86_64 fc5 box.
>
>    [root@arbol ~]# yum list
>    rpmdb: PANIC: fatal region error detected; run recovery
>    error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run data
>    error: cannot open Packages index using db3 -  (-30977)
>
> I then found some advice via google to rebuild the db so I did:
>
>       /bin/rm -f /var/lib/rpm/__db.*
>       rpm --initdb
>       rpm --rebuilddb
>         chown rpm:rpm /var/lib/rpm/__db.*
>
> That sort of got things hobbling along, but now livna doesn't work.
>
>      ftp://mirrors.tummy.com/pub/rpm.livna.org/fedora/Null/x86_64g/repodata/repomd.xml
>
> It looks like the "fc5" that goes between "fedora" and "x86_64" is
> missing.  I take it some part of the db didn't get totally rebuilt?
> Do I need to somehow stuff the "fc5" release name into the db by hand?

Is your fedora-release package still OK?

$ rpm -qi fedora-release

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

I a afraid that after
   rpm --initdb
his rpm database is empty... From man rpm

  REBUILD DATABASE OPTIONS
      The general form of an rpm rebuild database command is

      rpm {--initdb|--rebuilddb} [-v] [--dbpath DIRECTORY] [--root DIRECTORY]

      Use --initdb to create a new database, use --rebuilddb to  rebuild  the
      database indices from the installed package headers.

The only way to get a list of installed packages I know of is
to look into the file /var/log/rpmpkgs , generated every night by cron.
Then OP could try restore his rpm database by hand, using --justdb
option of rpm command.

V.Rudenko
--
lambda is the ultimate

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux