Tag Archives: dpkg: error: dpkg status database is locked by another process

[Solved] Dpkg: error: dpkg status database is locked by another process

Use the dpkg -i/apt command to install, an error is reported:

————————————————– ———–

dpkg: error: dpkg status database is locked by another process

Unable to obtain lock /var/lib/apt/lists/lock-open

————————————————– ————

1. It may be the software center, just close it, or open ‵System Monitor‵, and kill the process with the words apt, dpkg in the process.

2. It may also be caused by an ubuntu upgrade error or forced interruption, then proceed as follows:

 

$ sudo rm /var/lib/dpkg/lock

$ sudo dpkg –configure -a

$ sudo rm /var/lib/apt/lists/lock

 

 

sudo -i can directly switch root permissions