Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a problem installing Dropbox in Ubuntu 12.04

Files in subdirectories of /var are locked preventing the completion of installation
share|improve this question
a little details will help us to help you. what you did, what is error.. :) – Web-E Jun 24 '12 at 10:59
How are you installing Dropbox? – Mitch Jun 24 '12 at 11:06
nehoffman I have attempted to install via Software Center and with .deb file with gdebi ---- in both cases it just hangs -- an attempt to install in terminal showed errors - locks on files in the sub directories of /var/lib – nehoffman Jun 24 '12 at 11:28

There could be one of two issues with this.

  1. You may not be running the installer as root.

  2. You may have another package manager or installer running, or a broken APT.

If you do have a broken APT and you are sure you have exhausted any other option, try removing the lock and doing a reconfigure by doing:

sudo rm /var/lib/apt/lock
sudo dpkg-reconfigure -a

This should remove the lock and reconfigure dpkg, so you should be able to install again. be careful not to shut down your PC while installing something via APT again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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