<br><br><div class="gmail_quote">On Wed, Jun 15, 2011 at 9:07 PM, Sarunas Burdulis <span dir="ltr"><<a href="mailto:sarunas@math.dartmouth.edu">sarunas@math.dartmouth.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 06/15/2011 09:00 PM, Ric Moore wrote:<br>
> On Wed, 2011-06-15 at 17:07 +0100, Alan Pope wrote:<br>
>> On 15 June 2011 17:04, amritpal pathak <<a href="mailto:amritpalpathak1@gmail.com">amritpalpathak1@gmail.com</a>> wrote:<br>
>>> E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or<br>
>>> directory)<br>
>>> E: Unable to lock the administration directory (/var/lib/dpkg/), are you<br>
>>> root?<br>
>>><br>
>><br>
>> What exact command are you running?<br>
><br>
> I don't think he sudo'd correctly. :) Ric<br>
<br>
</div>There is a chance that something else is using dpkg (in the<br>
background?). Software center, auto updates, perhaps.<br>
<br>
`ps -efH|less` will show them all.<br>
output of this is:</blockquote><div><div>UID PID PPID C STIME TTY TIME CMD</div><div>root 2 0 0 12:21 ? 00:00:00 [kthreadd]</div><div>root 3 2 0 12:21 ? 00:00:00 [migration/0]</div>
<div>root 4 2 0 12:21 ? 00:00:00 [ksoftirqd/0]</div><div>root 5 2 0 12:21 ? 00:00:00 [watchdog/0]</div><div>root 6 2 0 12:21 ? 00:00:00 [migration/1]</div>
<div>root 7 2 0 12:21 ? 00:00:00 [ksoftirqd/1]</div><div>root 8 2 0 12:21 ? 00:00:00 [watchdog/1]</div><div>root 9 2 0 12:21 ? 00:00:00 [events/0]</div><div>
root 10 2 0 12:21 ? 00:00:00 [events/1]</div><div>root 11 2 0 12:21 ? 00:00:00 [cpuset]</div><div>root 12 2 0 12:21 ? 00:00:00 [khelper]</div><div>root 13 2 0 12:21 ? 00:00:00 [netns]</div>
<div>root 14 2 0 12:21 ? 00:00:00 [async/mgr]</div><div>root 15 2 0 12:21 ? 00:00:00 [pm]</div><div>root 17 2 0 12:21 ? 00:00:00 [sync_supers]</div><div>root 18 2 0 12:21 ? 00:00:00 [bdi-default]</div>
<div>root 19 2 0 12:21 ? 00:00:00 [kintegrityd/0]</div><div>root 20 2 0 12:21 ? 00:00:00 [kintegrityd/1]</div><div>root 21 2 0 12:21 ? 00:00:00 [kblockd/0]</div>
<div>root 22 2 0 12:21 ? 00:00:00 [kblockd/1]</div><div>root 23 2 0 12:21 ? 00:00:00 [kacpid]</div><div>root 24 2 0 12:21 ? 00:00:00 [kacpi_notify]</div><div>
root 25 2 0 12:21 ? 00:00:00 [kacpi_hotplug]</div><div>root 26 2 0 12:21 ? 00:00:00 [ata/0]</div><div>root 27 2 0 12:21 ? 00:00:00 [ata/1]</div><div>root 28 2 0 12:21 ? 00:00:00 [ata_aux]</div>
<div>root 29 2 0 12:21 ? 00:00:00 [ksuspend_usbd]</div><div>root 30 2 0 12:21 ? 00:00:00 [khubd]</div><div>root 31 2 0 12:21 ? 00:00:00 [kseriod]</div><div>root 32 2 0 12:21 ? 00:00:00 [kmmcd]</div>
<div>root 35 2 0 12:21 ? 00:00:00 [khungtaskd]</div><div>root 36 2 0 12:21 ? 00:00:01 [kswapd0]</div><div>root 37 2 0 12:21 ? 00:00:00 [ksmd]</div><div>root 38 2 0 12:21 ? 00:00:00 [aio/0]</div>
<div>root 39 2 0 12:21 ? 00:00:00 [aio/1]</div><div>root 40 2 0 12:21 ? 00:00:00 [ecryptfs-kthrea]</div><div>root 41 2 0 12:21 ? 00:00:00 [crypto/0]</div></div>
<div><br></div><div> </div></div>