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

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



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


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



Reply to: