Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.