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 was installing a Robotino package with Ubuntu Software Center. But then, USCenter hanged for so long so I kill USCenter with "kill PID"

it's bad that I cannot recover the broken installation to install again with either USCenter or dbpk

I already deleted the 'lock' file and use 'apt-get clean/autoclean/autoremove' but all failed

What can I do now to reinstall again the package??

share|improve this question
    
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory => this is the errors I got –  Shawn Le Oct 10 '12 at 7:55
add comment

1 Answer 1

up vote 0 down vote accepted

Deleting the lock file is not a good idea, its there for a reason.

This typically means that there is still a process that holds the lock - any of synaptic, dpkg, apt-get.

What you can do is to run ps ax | grep <insert process name> and try to kill which show up.

Verify again if it is killed, if not use kill -9 <proc name>

Another easy solution is to simply restart.

share|improve this answer
    
thank you! it's great! after restarting my computer, it works fine again :). Whatever the case, you still have to kill the task, the installation (I did it) and result in a broken installation with(out) lock file –  Shawn Le Oct 10 '12 at 12:06
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.