Cannot open Name index using db3

In Ubuntu on 28/09/2011 by weirdfellow Tagged:

I am using Ubuntu 10.04, but often have to work with RPMs – see what’s inside or get the content. And errors drive me crazy – “Cannot open Name index using db3 – No such file or directory (2)” especially.

Eventually I figured it out. If you are getting it, that means the file /var/lib/rpm/Name is missing.

Because I am on Ubuntu and don’t really depend on RPMs databases, I purged the whole /var/lib/rpm directory, and then ran rpm --rebuilddb to recreate them. This created empty /var/lib/rpm/Packages file. Now just copy it as /var/lib/rpm/Name.

Error free environment 🙂


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: