[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#152061: marked as done (apt: apt must be run as root or does not pass options to dpkg)



Your message dated Fri, 5 Jul 2002 22:00:56 -0500 (CDT)
with message-id <Pine.LNX.4.33.0207052200340.9857-100000@yakko.doogie.org>
and subject line Bug#152061: apt: apt must be run as root or does not pass options  to dpkg
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Jul 2002 01:58:19 +0000
>From mdione@grulic.org.ar Fri Jul 05 20:58:19 2002
Return-path: <mdione@grulic.org.ar>
Received: from modem117-adsl.capfed2.sinectis.com.ar (mail.vialibre.org.ar) [200.59.78.117] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17Qeq2-0006ka-00; Fri, 05 Jul 2002 20:58:19 -0500
Received: from pcmam.fsl.org.ar ([192.168.1.8] helo=tempest.styx.org.ar)
	by mail.vialibre.org.ar with esmtp (Exim 3.35 #1 (Debian))
	id 17Qepk-00082z-00; Fri, 05 Jul 2002 22:58:00 -0300
Received: from mdione by tempest.styx.org.ar with local (masqmail
 0.2.10) id 17Qepn-5m7-00; Fri, 05 Jul 2002 22:58:03 -0300
From: mdione@grulic.org.ar
Subject: apt: apt must be run as root or does not pass options to dpkg
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.1
Date: Fri, 05 Jul 2002 22:58:03 -0300
Message-ID: <[🔎] 17Qepn-5m7-00@tempest.styx.org.ar>
Delivered-To: submit@bugs.debian.org

Package: apt
Version: 0.5.4
Severity: normal

  I'm trying to make apt to store its files in a certain directory.
the problem seem to be that either apt-get does not pass options to
dpkg correctly or dpkg must be run as root. the command I'm using (as
user) is:

apt-get -o DPkg::Options::=--root=./dpkg -o Dir::Cache=./apt -o Dir::State=./apt update

  the dirs apt/lists/partial, apt/archives/partial and dpkg exist
under the current directory (created them with mkdir -p). apt runs
fine, but dpkg fails saying:

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

  I also tried to pass other command options to dpkg, like --help, but
no answer. I also know that this has been reported earlier, but I
guess he was running it as root, not as user. I tried to get help on
#debian channel, but noone seem to know a thing about it. this is my
last resort.

-- System Information
Debian Release: 3.0
Kernel Version: Linux tempest.styx.org.ar 2.4.18 #2 mié jun 19 17:36:14 ART 2002 i686 unknown

Versions of the packages apt depends on:
+++-==============-==============-============================================
ii  libc6          2.2.5-7        GNU C Library: Shared libraries and Timezone
ii  libstdc++2.10- 2.95.4-9       The GNU stdc++ library

---------------------------------------
Received: (at 152061-done) by bugs.debian.org; 6 Jul 2002 03:01:18 +0000
>From doogie@debian.org Fri Jul 05 22:01:18 2002
Return-path: <doogie@debian.org>
Received: from 12-238-101-237.client.attbi.com (yakko.doogie.org) [12.238.101.237] (uucp)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17Qfp0-0000mg-00; Fri, 05 Jul 2002 22:01:18 -0500
Received: from localhost [127.0.0.1] (uucp)
	by yakko.doogie.org with esmtp (Exim 3.35 1 (Debian))
	id 17Qfoe-0008VA-00; Fri, 05 Jul 2002 22:00:56 -0500
Date: Fri, 5 Jul 2002 22:00:56 -0500 (CDT)
From: Adam Heath <doogie@debian.org>
X-X-Sender:  <adam@yakko.doogie.org>
To:  <mdione@grulic.org.ar>,  <152061-done@bugs.debian.org>
Subject: Re: Bug#152061: apt: apt must be run as root or does not pass options
 to dpkg
In-Reply-To: <[🔎] 17Qepn-5m7-00@tempest.styx.org.ar>
Message-ID: <Pine.LNX.4.33.0207052200340.9857-100000@yakko.doogie.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 152061-done@bugs.debian.org

On Fri, 5 Jul 2002 mdione@grulic.org.ar wrote:

>   I'm trying to make apt to store its files in a certain directory.
> the problem seem to be that either apt-get does not pass options to
> dpkg correctly or dpkg must be run as root. the command I'm using (as
> user) is:
>
> apt-get -o DPkg::Options::=--root=./dpkg -o Dir::Cache=./apt -o Dir::State=./apt update

--root causes dpkg to issue a chroot.  Only root can do that.


-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: