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

Web Servers Load balancing with HAProxy

Redirect all unencrypted traffic to HTTPS in Apache

Using nginx as http load balancer