Hi Spandan,
Before deleting the lock file, check if the dpkg/apt process is already
running on the system (ps -eaf | grep -i apt). Sometimes apt process keep
running which locks the dpkg-lib. Only remove the lock file once you see
that no dpkg or apt processes are running.

_________________________________________________________

Regards,
Abhishek Singh

On Mon, Sep 21, 2015 at 8:58 PM, Roshan Gautam <[email protected]> wrote:

> try removing the lock file in the directory /var/lib/dpkg/
> sudo rm /var/lib/dpkg/lock
>
>
> On 21 September 2015 at 20:57, spandan pradhan <
> [email protected]> wrote:
>
>> Hello all,
>>
>> I need help regarding installing softwares on ubuntu 12 . When i try to
>> install any software it gives error. For example
>>
>> sudo add-apt-repository ppa:indicator-multiload/stable-daily
>> sudo apt-get update
>> sudo apt-get install indicator-multiload
>>
>> then i get error like
>>
>>
>> *E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily 
>> unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), 
>> is another process us*ing it?
>>
>> Thanks and regards,
>> Spandan Pradhan
>>
>> --
>> Mailing List Guidelines:
>> http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
>> Community website: http://www.fossnepal.org/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "FOSS Nepal" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Mailing List Guidelines:
> http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
> Community website: http://www.fossnepal.org/
> ---
> You received this message because you are subscribed to the Google Groups
> "FOSS Nepal" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Mailing List Guidelines: 
http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines
Community website: http://www.fossnepal.org/
--- 
You received this message because you are subscribed to the Google Groups "FOSS 
Nepal" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to