PDA

View Full Version : YUM Broken



MrMachead
16th June 2006, 07:56 PM
Yum has developed some big problems on my FC5 installation. I will supply the partial error message. Can anyone tell me how to repair this problem??

Downloading Packages:
(1/1): kernel-2.6.16-1.21 100% |=========================| 13 MB 00:24
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: kernel ######################### [1/1]
rpmdb: PANIC: Invalid argument
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_put: DB_RUNRECOVERY: Fatal error, run
database recovery
error: error(-30977) storing record into Requireversion
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run
database recovery
error: error(-30977) getting "" records from Requireversion index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run
database recovery
error: error(-30977) getting "8.11.1-1" records from Requireversion index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run
database recovery
error: error(-30977) getting "4.2.21-1" records from Requireversion index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run
database recovery

wdgiles
16th June 2006, 08:17 PM
From another forum and a quick google search, here is one solution: http://www.linuxforums.org/forum/redhat-fedora-linux-help/26868-rpm-database-recovery.html

the commands

rm -f /var/lib/rpm/__db*
#db_verify /var/lib/rpm/Packages
#rpm --rebuilddb

###there are 2 underscores in _ _ db*.

SharedMedia
16th June 2006, 08:25 PM
Hi, you can some things mentioned in other forums (and this one in Fedora Forums: http://www.fedoraforum.org/forum/archive/index.php/t-99076.html) although I have yet to try as I am now testing FC5 and creating HowTO:.

You may try these quick tricks....- Run Pup (software updater), and it should update Xorg (or update Xorg manually)
- Install fedora-release RPM (http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm) package. If you have third party packages installed on the system I also suggest to remove them to avoid possible problems. As mentioned in thread :)
Then use the command "yum update yum" to get the latest version.
Then proceed to do, "yum -y upgrade" to retain obsolete packages than you can remove later.

- Review misc thread here: http://www.redhat.com/archives/rhl-list/2006-April/msg02847.html


PUP... and what is it?...
Software management has undergone a major shift in orientation, from the disk-based software installation of the old system-config-packages tool to an entirely online repository software orientation. Using YUM-based repositories, the new software management tools, Pirut Package Manager and PUP updater, will download and install added and new software from Fedora repositories

Installation Procedure
There are three key changes in the installation procedure:

A new software install tool Pirut Package Manager that's designed to work with YUM repositories.
The Firewall and SE Linux configuration has moved to the post-install process
The default software configurations have changed to Office and Productivity, Software development, and Web server.

The Fedora Core 5 install program now features a new package manager, Pirut. A small set of major software categories expands to more detailed subcategories. Within each subcategory an optional panel lists the packages you can add or remove. Take the time to check out what packages are not being installed.

Pirut: A Repository Model of Software Management
The Pirut Package Manager is a new package management tool that replaces the older system-config-packages there were used primarily for the disk-based packages. The Pirut Package Manager is Internet-based, installing from online repositories only, using Yum to download and install. The Package Manager is the same tool used during installation to select packages.

To start the Pirut Package Manager, select Add/Remove Software from the Applications menu. It has the same interface as descript used in the install process, but with a List button that lets you add and remove software using a single list of all the available software from all the configured repositories and a search button to search for packages.

YUM is now integrated as the primary install packages tool. When you install a package with Pirut Package Manger, YUM will be invoked and will automatically select and download the package from the appropriate online repository. This is a major change that users may not be aware of at first glance. After installing your system and you want to install additional packages, the install packages tool will now use YUM to install from an online repository rather than retrieving the packages from your CD or DVD ROM. This will include all the YUM online repositories that you may have configured such as sites like rpm.livna.org, not just the Fedora Core base, extras, and update repositories configured for you during installation.

Keep in mind that when you use the package manager to list your available software, the package manager is listing software on all the repositories taken together. The software on your CD/DVD isn't being referenced. When you click List on the package manger and you see the list of software, you're seeing the collections of all repositories together. The previous system-config-packages used in the earlier release only accessed packages on your disk.

That means that the repositories with their updated versions become the primary software source, not the disks. On the other hand, if you want to install a package from the disk, you have to do it manually with an rpm command in a terminal window.

You might think that trying to install a disk package by right-clicking on it from Gnome and selecting "install software" would install that disk package. This is not the case. The Package Manger will still be invoked and will download the package from a repository. In effect, the software packages on your disks are completely ignored after the system installation.

PUP Package Updater: No More RHN
To update your packages you now use the Package Updater Program (PUP), instead of RHN uptodate. PUP is a graphical update interface for YUM, which now does all the updates. With PUP you no longer have to update using a YUM update command entered in a terminal window.

To update from Gnome, you go to the Applications menu and select the System Tools menu. There you'll find a Package Software Updater entry with a yellow puppy logo. Selecting this starts PUP, which will list all the packages in need of update. All will be selected automatically. The checkboxes for each entry let you de-select any particular packages you may not want to update. Click the Apply button to start updating. Dependencies will be checked first. Then the packages will be downloaded from their appropriate repository. Once downloaded the packages are updated. All the YUM-compatible repositories that are configured on your system will be checked. Again, software is now seen as a set of collections on different online repositories, rather than particular disks.

Be sure to check down the list for critical installs, like a new kernel. You may or may not want such an install. Should a new kernel be installed you'll be prompted to reboot your system.

http://sathyasatissh.wordpress.com/2006/04/22/pup-and-pirut-review/

MrMachead
16th June 2006, 09:56 PM
Rebuilding the RPM database did the trick...thanks!