I've been getting the following after running a dpkg command:

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

After running (from here):

sudo fuser -vki /var/lib/dpkg/lock

I get:

                     USER PID ACCESS COMMAND
/var/lib/dpkg/lock:  root       2591 F.... unattended-upgr

How do I check the progress of this process?

What are the consequences, if any, of killing it?


You can see the latest entry in the log file e.g. /var/log/unattended-upgrades/unattended-upgrades-dpkg.log, try

tail /var/log/unattended-upgrades/unattended-upgrades-dpkg.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.