Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6052

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

$
0
0

Delete the updates with:cd /var/lib/dpkg/updatessudo rm *

Tried to update and upgrade:sudo apt updatesudo apt upgrade

Still it says that:E: Could not get lock /var/lib/dpkg/lockThis means that some program is blocking the system or installing a new software.

Check if any programs is locking dpkg file:

ps aux | grep -i apt

try to see which are existing locks

sudo lsof /var/lib/dpkg/locksudo lsof /var/lib/apt/lists/locksudo lsof /var/cache/apt/archives/lock

Try to delete them using:

sudo rm /var/lib/apt/lists/locksudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lockTry again:

sudo dpkg --configure -aIt should work.

Try again to installing with:

sudo apt updatesudo apt upgradeThis should resume the process and keep everything stable.

this way it resolved my issue of dbpkg is locked


Viewing all articles
Browse latest Browse all 6052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>