This one time, at band camp, Nori Heikkinen said: > on Sun, 17 Nov 2002 08:49:36PM +0000, Colin Watson insinuated: > > Firstly, don't be in / when grabbing source packages. :) You don't > > need to be root, either. > > well, i have needed to be of late, and just haven't worried about it > recently ... whenever i try to run apt as myself, i get the following: > > orange:~> apt-get install foo > 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? > > reinstalling apt doesn't seem to help, either.
apt-get install won't let you do it as a user, but apt-get source will download the source - this is because you're not actually installing anything to the system. > > As an ordinary user, 'apt-get source centericq'. This creates a > > 'centericq-<version>' directory below the current directory. Change > > into that, then (after installing the fakeroot package) > > 'dpkg-buildpackage -rfakeroot -uc -us'. > > okay, almost there ... but i get this error about 15 seconds into the > setup: > > running /bin/sh ./configure --host=i386-linux --build=i386-linux > --prefix=/usr '--mandir=${prefix}/share/man' > '--infodir=${prefix}/share/info' --with-included-gettext > --cache-file=.././config.cache --srcdir=. > ./configure: line 421: ./config.log: Permission denied > configure: error: ./configure failed for kkconsui-0.1 > make: *** [config.status] Error 1 > > permissions look fine for ./config.log (600 and i own it). any ideas? > > </nori> Hmmm . . . builds fine here. Do you have a reasonably high speed net connection? If you do, I recommend pbuilder for rebuilding packages. Just install it, edit /etc/pbuilderrc to build for the distro you want, and add /usr/sbin/pbuilder to your list of sudo-able powers (/etc/sudoers). Change into centericq-4.8.7, and type `pdebuild` - it'll chroot itself, get all the dependencies, and then builds it for you. Nice. -- ------------------------------------------------------------------------------ |Stephen Gran | Like punning, programming is a play on | |[EMAIL PROTECTED] | words. | |http://www.lobefin.net/~steve | | | | | ------------------------------------------------------------------------------
msg13556/pgp00000.pgp
Description: PGP signature