E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

amritpal pathak amritpalpathak1 at gmail.com
Wed Jun 15 16:04:34 UTC 2011


On Wed, Jun 15, 2011 at 5:24 AM, Jordon Bedwell <jordon at envygeeks.com>wrote:

> On 6/15/2011 4:07 AM, amritpal pathak wrote:
> > E: Could not open lock file /var/lib/dpkg/lock
> > Tried to unlock as: sudo rm /var/lib/dpkg/lock .
> > It asked for password and then says:
> > rm: cannot remove `/var/lib/dpkg/lock': No such file or
> > directory i.e there is no suck a file/directory..but the  error shows it.
>
>
> You cannot have multiple package managers running at the same time.  If
> update-manager happened to proc while you were trying to apt it would
> have created a confusing incident like you experienced where one second
> it won't work but the next the lock is gone and cannot be manually
> removed. Did you happen to try it a couple minutes later after verifying
> no other package managers were open?
>
          yes am sure no other package manager were open.I tried it again
after 5-6 hours again same error came.
  E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or
directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110615/c9292bc6/attachment.html>


More information about the ubuntu-users mailing list