I was configuring my local Ubuntu installation (14.04 LTS). I got this error while trying to run apt-get. I have seen many answer regarding this issue. None of a single answer solve my issue. So I have decided to post a question even many duplicates exists. See my answer below.

| improve this question | | | | |
  • Yes, I know please see my answer. – Siddiqui Noor Jan 4 '16 at 17:19
  • Oh sorry. My bad =) – TellMeWhy Jan 4 '16 at 17:20

I post my answer without editing my question because most of us like me only see the answer section. So here how I fixed my issue:

I was using 2 terminal and I forgot that I was installing another software while trying to run another apt-get (installing on Ubuntu Software Center will cause the same), so I wait until the installation completed. After that no error occurred.

If this is not one your case then you can follow other answer:

  1. Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
  2. Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

Hope this will help others.

| improve this answer | | | | |
  • If your answer is essentially a referral to another question, it would be better to flag this question as a duplicate of the other once you earned 15 reputation. Don't forget to vote for the answer(s) there that you found useful! – David Foerster Aug 18 '17 at 11:59
  • Actually none of all other answers solved my issue. I added similar questions so that they might be helpful for others. – Siddiqui Noor Aug 21 '17 at 7:44
  • In that case you may want to un-accept or even delete your answer. – David Foerster Aug 21 '17 at 8:29
  • For those who are using a virtual machine via VirtualBox and Vagrant, simply restarting the VM did it for me - this may also apply if your host machine O.S is Ubuntu or other flavour of *nix... Vagrant machine is ubuntu/xenial from app.vagrantup.com/ubuntu/boxes/xenial64. – Rob Nov 1 '17 at 21:56

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