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 know that when a package is being installed, the root directory [I think?] gets an administrator lock and can't make an other installation at the same time.

Is there a way to stop that installation? If it is so, is it good to do?

I heard that it is better to leave the package to get installed and then try removing it. Is that true?

share|improve this question

marked as duplicate by Eliah Kagan, guntbert, karel, Eric Carvalho, bodhi.zazen Jun 15 '14 at 20:16

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.

up vote 5 down vote accepted

When you run a software installation command (e.g., aptitude, apt-get, synaptic or the Ubuntu Software Centre), the file /var/lib/dpkg/lock is locked to prevent several instances of the command to run concurrently. The reason to do this is that software installation has to modify vital system files, and concurrent modification may result in some changes not being applied or -worse- in corrupted files.

Although the dpkg package installation system used in Debian and Ubuntu is quite robust and will do the right thing even if an installation is canceled or interrupted, it is usually safer to let the installation finish and then remove the installed package afterwards.

share|improve this answer

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