Hi Aron, On Wed, Jul 29, 2009 at 09:39:50AM -0400, Aron Griffis wrote: [..snip..]
Does Guido's patch still "solve" the problem if it's written:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@")
or alternatively, does this work as well as Guido's patch:
- smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") + in_target dpkg --force-depends --install $(debfor "$@")
Guido Günther wrote: Looks like the real problem is due to debootstrap's --variant=fakechroot not detecting any base dependencies - Full details below. this one works this one not BUT !!!! even with : smallyes '' | chroot $TARGET dpkg --force-depends --install $(debfor "$@") and: chroot $TARGET dpkg --force-depends --install $(debfor "$@") the problem is not really solved (it just omits the warning message before aborting installation)!!! the "debirf make -n debian" command just ends with: ... I: Installing core packages... # while with original : smallyes '' | in_target dpkg --force-depends --install $(debfor "$@") it ends with: I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb # but AFAICT sucessfull debirf command should end with: ... I: Installing core packages... I: Unpacking required packages... ... I: Configuring required packages... ... I: Unpacking the base system... ... I: Configuring the base system... .... I: Base system installed successfully. # the command internal debirf command ends with same: fakechroot sh -x /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb # while with sh -x before debootstrap: fakechroot sh -x /usr/sbin/debootstrap --variant=fakechroot --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ ... I: Installing core packages... W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/base-files_5lenny3_amd64.deb /var/cache/apt/archives/base-passwd_3.5.20_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/dpkg_1.14.25_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/libc6_2.7-18_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/perl-base_5.10.0-19_amd64.deb W: Failure trying to run: chroot /var/tmp/portage/app-emulation/libguestfs-1.0.64/work/libguestfs-1.0.64/appliance/debian/root dpkg --force-depends --install /var/cache/apt/archives/mawk_1.3.3-11.1_amd64.deb I: Unpacking required packages... W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. W: Failure while unpacking required packages. This will be attempted up to five times. I: Configuring required packages... W: Failure while configuring required packages. I: Unpacking the base system... W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. W: Failure while installing base packages. This will be re-attempted up to five times. I: Configuring the base system... W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. W: Failure while configuring base packages. I: Base system installed successfully. # Looks like bash glitches... Another thing to note (and which seems to be source of the problem) is that debootstrap with --variant=fakechroot does not find any additional base dependencies, while with --variant=minbase|buildd it does and works correctly!!! for example with -variant=minbase it finds: ... I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbz2-1.0 libreadline5 libusb-0.1-4 readline-common ... # And the following command installs the base system OK: /usr/sbin/debootstrap --variant=minbase --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ Here is the output with --variant=fakechroot & --print-debs: # fakechroot /usr/sbin/debootstrap --variant=fakechroot --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature gpgv: Signature made Sat 27 Jun 2009 09:18:39 PM IDT using RSA key ID 55BE302B gpgv: Good signature from "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" gpgv: Signature made Sat 27 Jun 2009 09:31:45 PM IDT using DSA key ID F42584E6 gpgv: Good signature from "Lenny Stable Release Key <debian-release@lists.debian.org>" I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... base-files base-passwd bash binutils bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam0g libpam-modules libpam-runtime libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysvinit sysvinit-utils sysv-rc tar tzdata util-linux zlib1g adduser apt aptitude cpio debian-archive-keyring dhcp3-client dhcp3-common dmidecode gnupg gpgv groff-base ifupdown iproute iptables iputils-ping less libbz2-1.0 libconsole libcwidget3 libept0 libgcrypt11 libgdbm3 libgnutls26 libgpg-error0 libncursesw5 libnewt0.52 libpopt0 libreadline5 libsasl2-2 libsigc++-2.0-0c2a libssl0.9.8 libtasn1-3 libusb-0.1-4 libwrap0 libxapian15 module-init-tools nano netbase netcat-traditional net-tools readline-common rsyslog update-inetd vim-common vim-tiny wget whiptail I: Deleting target directory # And the output with --variant=minbase & --print-debs (notice the additional - I: Found additional base dependencies: .. - line) # /usr/sbin/debootstrap --variant=minbase --print-debs --keyring=/usr/share/keyrings/debian-archive-keyring.gpg --include=less --exclude=apt-utils,bsdmainutils,cron,ed,info,logrotate,man-db,manpages,tasksel,tasksel-data,tcpd,traceroute lenny debian/root http://ftp.debian.org/debian/ I: Retrieving Release I: Retrieving Release.gpg I: Checking Release signature gpgv: Signature made Sat 27 Jun 2009 09:18:39 PM IDT using RSA key ID 55BE302B gpgv: Good signature from "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" gpgv: Signature made Sat 27 Jun 2009 09:31:45 PM IDT using DSA key ID F42584E6 gpgv: Good signature from "Lenny Stable Release Key <debian-release@lists.debian.org>" I: Valid Release signature (key id 7F5A44454C724A65CBCD4FB14D270D06F42584E6) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbz2-1.0 libreadline5 libusb-0.1-4 readline-common base-files base-passwd bash bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam0g libpam-modules libpam-runtime libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysvinit sysvinit-utils sysv-rc tar tzdata util-linux zlib1g apt debian-archive-keyring gnupg gpgv less libbz2-1.0 libreadline5 libusb-0.1-4 readline-common I: Deleting target directory # So problem must be due to debootstrap's --variant=fakechroot not detecting any base dependencies. And currently I can't proceed without this problem being solved. Thanks Alex