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

amritpal pathak amritpalpathak1 at gmail.com
Thu Jun 16 16:43:43 UTC 2011


On Wed, Jun 15, 2011 at 9:07 PM, Sarunas Burdulis <
sarunas at math.dartmouth.edu> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/15/2011 09:00 PM, Ric Moore wrote:
> > On Wed, 2011-06-15 at 17:07 +0100, Alan Pope wrote:
> >> On 15 June 2011 17:04, amritpal pathak <amritpalpathak1 at gmail.com>
> wrote:
> >>>   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?
> >>>
> >>
> >> What exact command are you running?
> >
> > I don't think he sudo'd correctly. :) Ric
>
> There is a chance that something else is using dpkg (in the
> background?). Software center, auto updates, perhaps.
>
> `ps -efH|less` will show them all.
>   output of this is:

UID        PID  PPID  C STIME TTY          TIME CMD
root         2     0  0 12:21 ?        00:00:00 [kthreadd]
root         3     2  0 12:21 ?        00:00:00   [migration/0]
root         4     2  0 12:21 ?        00:00:00   [ksoftirqd/0]
root         5     2  0 12:21 ?        00:00:00   [watchdog/0]
root         6     2  0 12:21 ?        00:00:00   [migration/1]
root         7     2  0 12:21 ?        00:00:00   [ksoftirqd/1]
root         8     2  0 12:21 ?        00:00:00   [watchdog/1]
root         9     2  0 12:21 ?        00:00:00   [events/0]
root        10     2  0 12:21 ?        00:00:00   [events/1]
root        11     2  0 12:21 ?        00:00:00   [cpuset]
root        12     2  0 12:21 ?        00:00:00   [khelper]
root        13     2  0 12:21 ?        00:00:00   [netns]
root        14     2  0 12:21 ?        00:00:00   [async/mgr]
root        15     2  0 12:21 ?        00:00:00   [pm]
root        17     2  0 12:21 ?        00:00:00   [sync_supers]
root        18     2  0 12:21 ?        00:00:00   [bdi-default]
root        19     2  0 12:21 ?        00:00:00   [kintegrityd/0]
root        20     2  0 12:21 ?        00:00:00   [kintegrityd/1]
root        21     2  0 12:21 ?        00:00:00   [kblockd/0]
root        22     2  0 12:21 ?        00:00:00   [kblockd/1]
root        23     2  0 12:21 ?        00:00:00   [kacpid]
root        24     2  0 12:21 ?        00:00:00   [kacpi_notify]
root        25     2  0 12:21 ?        00:00:00   [kacpi_hotplug]
root        26     2  0 12:21 ?        00:00:00   [ata/0]
root        27     2  0 12:21 ?        00:00:00   [ata/1]
root        28     2  0 12:21 ?        00:00:00   [ata_aux]
root        29     2  0 12:21 ?        00:00:00   [ksuspend_usbd]
root        30     2  0 12:21 ?        00:00:00   [khubd]
root        31     2  0 12:21 ?        00:00:00   [kseriod]
root        32     2  0 12:21 ?        00:00:00   [kmmcd]
root        35     2  0 12:21 ?        00:00:00   [khungtaskd]
root        36     2  0 12:21 ?        00:00:01   [kswapd0]
root        37     2  0 12:21 ?        00:00:00   [ksmd]
root        38     2  0 12:21 ?        00:00:00   [aio/0]
root        39     2  0 12:21 ?        00:00:00   [aio/1]
root        40     2  0 12:21 ?        00:00:00   [ecryptfs-kthrea]
root        41     2  0 12:21 ?        00:00:00   [crypto/0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110616/e5899e22/attachment.html>


More information about the ubuntu-users mailing list