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

Install Nginx With PHP And MySQL On CentOS 7

Redirect all unencrypted traffic to HTTPS in Apache