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

Re: [Libguestfs] Re: error when compiling libguestfs on Ubuntu 9.04



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/
>From 5152ad70b7a9ee41a2177b12a70a86a9751ce8f9 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones ubuntu904x64 (none)>
Date: Thu, 30 Jul 2009 13:58:05 +0100
Subject: [PATCH] Ubuntu: Add gpgv to the packagelist.

debootstrap seems to need this for Ubuntu so it can
check package signatures.
---
 appliance/packagelist.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/appliance/packagelist.in b/appliance/packagelist.in
index 9dbef11..5d874d6 100644
--- a/appliance/packagelist.in
+++ b/appliance/packagelist.in
@@ -23,6 +23,7 @@
   libaugeas0
   udev
   util-linux
+  gpgv
 #endif
 
 bash
-- 
1.6.0.4


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