Unable to remove the rpm due to error error: impossible to create transaction lock on /var/lib/rpm/.rpm.lock

Solution Verified - Updated -

Issue

  • Unable to remove the rpm due to error: impossible to create transaction lock on /var/lib/rpm/.rpm.lock
  • Tried to delete the file /var/lib/rpm/.rpm.lock and relaunch the removal, but it is not working
  • Tried with rpm -e, but it not working

Environment

  • Red Hat Enterprise Linux Server 7.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content