Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I receive the following message:

Could not get lock /var/lib/dpkg/lock - open (13: permmission denied)
share|improve this question

marked as duplicate by Jorge Castro, Eric Carvalho, Seth, Florian Diesch, hhlp Feb 26 '13 at 7:45

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.

Please provide more information. What are you trying to do when you get this error? – reverendj1 Jun 8 '12 at 13:58

2 Answers 2

It happens usually when you try to run multiple Update / Install sessions simultaneously.


  • You have started the Update Manager, it is installing updates,
  • at the same time you try to run an apt-get install ... command from terminal.

Another reason could be if a previous Update / Install process is interrupted. It might keep the dpkg database locked. A system restart might help.

share|improve this answer

This happens if:
1. You are running the apt-get command as simple user. Solution: sudo apt-get ....
2. You are running more than one apt-get commands in the same time.

share|improve this answer

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