In this Unixmen tutorial there are 11 steps to setup Conky; I did all of them but the terminal show this message:

The program 'conky' can be found in the following packages:
         * conky-cli
         * conky-std
Try: sudo apt-get install <selected package>

I then try this but saw this message:

ismail@ismail-ASUS:~$ sudo apt-get install conky
[sudo] password for ismail: 
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Can you help me?

marked as duplicate by karel, Eric Carvalho, David Foerster, Zanna command-line Jan 25 '18 at 13:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Probably Ubuntu Software Center or Synaptic is already open. If so, close those programs, and retry.

If nothing changes, close the session (log out) or reboot and retry.


If you are absolutely sure Software Center or synaptic are not running, if necessary, you can do

sudo rm -rf /etc/var/lib/dpkg/lock

and retry, which will work, but it's not recommended. Do it if you cant restart right now.

I'd say you restart or log in again and retry.


The error means dpkg is running. If you run sudo killall dpkg (or sudo killall -9 dpkg when the first command complains about not being able to kill dpkg) then it will be fixed.

BUT: This is not the 'clean' method of stopping dpkg down !

Some background first: dpkg is the 'real' package manager of ubuntu. Apt, apt-get, synaptic, ... are all frontends. If you close all this frontends then the error will also be gone (in a clean way)

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