Database Error while running Yum

Quite a few times, my patience runs out with the net connection provided to us, and in my frustration, i use the magical Ctrl+C combinations to cancel a currently going on yum updating process. And to my horror, the next yum update process results in something like this :

dB Berkeley Error…  Refresh the database.. etc etc

and yum doesnt work only after that.

If your facing a similar problem, not to worry.. yum will be back to square one and onto its effacing best, by running the following commands:

rm -f /var/lib/rpm/__db*        # eliminate cache and locks
rpm –rebuilddb -vv              # recreate primary key indicies

The 2nd command will take sometime to run.. chill.relax and run yum install process or update process without any worries next time 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s