My synaptic package manager in ubuntu10.10 is giving error:

  Unable to get exclusive lock
  This usually means that another package management application(like apt-get or  
  aptitude) is already running. Please close that application first.

Please resolve my problem for opening synaptic package manager

marked as duplicate by Eliah Kagan, Tim, mikewhatever, Warren Hill, Eric Carvalho Aug 18 '14 at 11:19

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.

I had the same problem. This post helped however, the pa aux command and the Kill command were ineffective. sudo rm /var/lib/dpkg/lock seemed to work and I followed it up by another Linux post.

The sudo apt-get update command worked.

The upgrade one did not as it stated could not get dns proxy.

Also the following came up:

some files failed to upload using old files.

At least the update was able to fetch 39 of them, the other is irrelevant as this is the latest Ubuntu 12.04 64 bit.

Hope this helps.

I had interrupted a sudo apt-get upgrade, and I was unable to get a lock on anything. I simply fixed it by running sudo dpkg --configure -a, and it let me pick up where I left off. Dunno if it helps, might as well share.

As mentioned in the other answer, you have to make sure that no other package management software is running.

Open a terminal and type the following command

ps aux | grep program-name

where program-name can be apt, software etc. (just to find out if apt-get or Software Center are running). If you get entries for them, note down their process id. Let it be xxxx. Then give the following command.

kill xxxx

Now try opening synaptic.

If the problem still persists, give the following command in the terminal,

sudo rm /var/lib/dpkg/lock

Now synaptic should hopefully open.

This error means that anoher Package Management Software is already running and using the files which for example contain the sources for the software. I would look for working processes like apt-get or aptitude with the system-monitor and exit them. Than restart synaptic and it should work.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["<li class=\"-item\"><a href=\"https://www.facebook.com/officialstackoverflow/\" class=\"-link\">Facebook</a></li>\r\n                    <li class=\"-item\"><a href=\"https://twitter.com/stackoverflow\" class=\"-link\">Twitter</a></li>\r\n                    <li class=\"-item\"><a href=\"https://linkedin.com/company/stack-overflow\" class=\"-link\">LinkedIn</a></li>\r\n                </ul>\r\n\r\n                <p class=\"mt-auto mb24\">\r\nsite design / logo &#169; 2018 Stack Exchange Inc; user contributions licensed under <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a>\r\n                            with <a href=\"https://stackoverflow.blog/2009/06/25/attribution-required/\" rel=\"license\">attribution required</a>.\r\n                    <span id=\"svnrev\">rev&nbsp;2018.11.16.32204</span>\r\n                </p>\r\n            </div>\r\n        </div>\r\n\r\n            <div class=\"site-footer--extra\">\r\n                Ubuntu and Canonical are registered trademarks of Canonical Ltd.\r\n            </div>\r\n            </footer>\r\n            <script>StackExchange.r"], "copyright__copyright__copyright": ["ists, give the following command in the terminal,\n\nsudo rm /var/lib/dpkg/lock\n\nNow synaptic should hopefully open.\n\nThis error means that anoher Package Management Software is already running and using the files which for example contain the sources for the software. I would look for working processes like apt-get or aptitude with the system-monitor and exit them. Than restart synaptic and it should work.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}