On Thu, May 31, 2001 at 10:59:53PM -0400, Rob Mahurin wrote: > On Wed, May 30, 2001 at 03:42:23PM -0500, will trillich wrote: > > On Sun, May 20, 2001 at 01:56:23AM +0200, Santi B?jar wrote: > > > I try to get a list of all the .deb to be installed (with > > > --print-uris), but I have to do it like root. I thought that if I add > > > a "-o Debug::NoLocking=yes" would make it possible to run it like > > > user. But I get this: > > > > > > bash$ apt-get --print-uris -o Debug::NoLocking=yes upgrade > > > E: Unable to write to /var/cache/apt/ > > > E: The package lists or status file could not be parsed or opened.
Hmmm, wait a minute: 10:37 $ apt-get --print-uris -o Debug::NoLocking=yes install proftpd Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: proftpd 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 357kB of archives. After unpacking 897kB will be used. 'ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/debian/dists/potato/main/binary-i386/net/proftpd_1.2.0pre12 10:38 $ apt-get --print-uris -o Debug::NoLocking=yes install proftpd | grep ^\' | cut -d\' -f 2 | xargs wget --10:42:43-- ftp://ftp-linux.cc.gatech.edu:21/pub/linux/distributions/debian/dists/potato/main/binary-i386/net/pb => `proftpd_1.2.0pre10-2.0potato1.deb' Connecting to ftp-linux.cc.gatech.edu:21... Why can I do this and Santi can't? (My /var/cache/apt doesn't conatain a lock file, but with NoLocking=yes, that shouldn't matter.) Rob -- No small art is it to sleep: it is necessary for that purpose to keep awake all day. -- Nietzsche