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

Nils Kassube kassube at gmx.net
Wed Jun 15 17:06:09 UTC 2011


amritpal pathak wrote:
>        i tried to install gcc compiler as:
>         sudo apt-get instal gcc
>                             it asked for password, i gave but after
> it error came

I'm sure you meant "sudo apt-get install gcc" but anyway, does the 
directory /var/lib/dpkg/ exist? Try

ls -la /var/lib/dpkg/


Nils




More information about the ubuntu-users mailing list