E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
amritpal pathak
amritpalpathak1 at gmail.com
Thu Jun 16 16:38:59 UTC 2011
On Wed, Jun 15, 2011 at 1:06 PM, NoOp <glgxg at sbcglobal.net> wrote:
> On 06/15/2011 02:07 AM, amritpal pathak wrote:
> > when i try to install any software by terminal ,it says:
> > 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?
> >
> > 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.
> > i am admin of my system(of cource) then why it is asking for "are you
> > root" and m unable to open synaptic package manager too..
>
> What is the output of:
> $ ls -al /var/lib/dpkg/
>
> ls: cannot access /var/lib/dpkg/: No such file or directory
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110616/36231da5/attachment.html>
More information about the ubuntu-users
mailing list