Re: error when compiling libguestfs on Ubuntu 9.04
Install debian-archive-keyring:
http://packages.debian.org/sid/debian-archive-keyring
Debirf wants to pass it to debootstrap for verification. The other possibility is to try to build an Ubuntu based appliance instead of a Debian based one with:
/configure --with-repo=karmic --with-mirror=<your_ubuntu_mirror>
Hi, I just got the same issue, and tried your advices. After installing debian-archive-keyring, I ran the following command: ./configure --with-repo=jaunty --with-mirror=http://fr.archive.ubuntu.com/ubuntu but when I run "make" I get the following error: Loading profile 'debian'... debirf: clearing old debirf root... debirf: creating debirf root... failed to open configuration file `/root/.dpkg.cfg' for reading: Permission denied So I run "make" as root, even if it is not recommended. Now I get the following error: debirf: creating debirf root... I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature E: Release signed by unknown key (key id 40976EAF437D05B5) I ran the following commands but I still get the same error: gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 40976EAF437D05B5 gpg --export 437D05B5 >> ~/.gnupg/trustedkeys.gpg sudo apt-key add ~/.gnupg/pubring.gpg sudo apt-get update -o Acquire::http::No-Cache=True Any hints ? Regards Anthony
On Thu, Jul 30, 2009 at 11:46:00AM +0200, LANNUZEL Anthony IT&L@bs wrote:
./configure --with-repo=jaunty --with-mirror=http://fr.archive.ubuntu.com/ubuntu
I'm just trying to build this on Ubuntu here. I'll let you know how that goes. I think we should document the required packages for each platform and have suggested configure scripts too, eg: --- README.Fedora Install packages: febootstrap, X, Y and Z Configure with: ./configure --enable-supermin --with-mirror=... etc --------- Thoughts? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On Thu, Jul 30, 2009 at 11:46:00AM +0200, LANNUZEL Anthony IT&L@bs wrote:
but when I run "make" I get the following error:
Loading profile 'debian'... debirf: clearing old debirf root... debirf: creating debirf root... failed to open configuration file `/root/.dpkg.cfg' for reading: Permission denied
I got further than this. Make sure you haven't run 'make' as root (rm -rf and reclone git to make sure). However you *will* need this: DEBIRF_KEYRING=/etc/apt/trusted.gpg make
So I run "make" as root, even if it is not recommended. Now I get the following error:
Never run make as root. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Thu, Jul 30, 2009 at 12:29:53PM +0100, Richard W.M. Jones wrote:
DEBIRF_KEYRING=/etc/apt/trusted.gpg make
Also you need to add 'gpgv' to appliance/packagelist.in. Even if it's installed outside the fakeroot, debootstrap wants it inside the fakeroot too so it can check signatures. You need to export DEBIRF_KEYRING=/etc/apt/trusted.gpg
From now on I see multiple different failures, but they all seem to be failures/bugs in debootstrap.
Stepping back from libguestfs, debootstrap fails for me: fakeroot fakechroot debootstrap --variant=fakechroot X /tmp/root FAILS for X in lenny, jaunty, sid works for X in intrepid This command: ./autogen.sh \ --enable-debug-command \ --with-drive-if=virtio \ --with-repo=intrepid \ --with-mirror=http://archive.ubuntu.com/ubuntu DEBIRF_KEYRING=/etc/apt/trusted.gpg make fails at: W: Failure trying to run: chroot /home/rjones/d/libguestfs/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_4.0.4ubuntu2_i386.deb /var/cache/apt/archives/base-passwd_3.5.18_i386.deb This seems to be some known bug in debootstrap. I suggest getting debootstrap working first on Ubuntu ... Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
participants (2)
-
LANNUZEL Anthony IT&L@bs -
Richard W.M. Jones