Fix error “cannot open Packages database in /var/lib/rpm”

Fix error  “cannot open Packages database in /var/lib/rpm” when try to update (upgrade) some packages
How to fix:
Step1: Remove old lock files running
#rpm -rf /var/lib/rpm/__db*
Step2: Rebuild rpm database
#rpm -vv –rebuilddb

Comments

Popular posts from this blog

Some common php modules

Nginx web server with SSL

Using nginx as http load balancer