You are not logged in.

#1 2016-06-18 22:13:54

c0d3z3r0
Member
Registered: 2016-04-30
Posts: 2

cdebootstrap --foreign broken

Hello,

I'm trying to build a Debian armhf rootfs with cdebootstrap.
This is what I did:

sudo cdebootstrap --arch=armhf -f standard --foreign jessie /tmp/debian
sudo cp /usr/bin/qemu-arm-static /tmp/debian/usr/bin
sudo chroot /tmp/debian /sbin/cdebootstrap-foreign

While this works on Debian it breaks on Arch at the second stage:

[Output as usual... everything ok here]

[...]

The following extra packages will be installed:
  bsdmainutils cron groff-base init-system-helpers iproute2 isc-dhcp-common
  libapt-inst1.5 libdns-export100 libestr0 libffi6 libgdbm3 libgmp10
  libgnutls-deb0-28 libgnutls-openssl27 libhogweed2 libicu52 libidn11
  libirs-export91 libisc-export95 libisccfg-export90 libjson-c2
  liblocale-gettext-perl liblogging-stdlog0 liblognorm1 libmnl0
  libnetfilter-acct1 libnettle4 libnewt0.52 libnfnetlink0 libp11-kit0
  libpipeline1 libpopt0 libpsl0 libtasn1-6 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libxtables10 vim-common
Suggested packages:
  cpp wamerican wordlist whois vacation libarchive1 anacron checksecurity
  groff ppp rdnssd iproute2-doc resolvconf avahi-autoipd gnutls-bin
  www-browser man-browser spell rsyslog-mysql rsyslog-pgsql rsyslog-mongodb
  rsyslog-doc rsyslog-gnutls rsyslog-gssapi rsyslog-relp indent
Recommended packages:
  exim4 postfix mail-transport-agent libatm1 libfribidi0 mailx ca-certificates
The following NEW packages will be installed:
  apt-utils bsdmainutils cpio cron debconf-i18n dmidecode groff-base ifupdown
  init-system-helpers iproute2 iptables iputils-ping isc-dhcp-client
  isc-dhcp-common kmod less libapt-inst1.5 libdns-export100 libestr0 libffi6
  libgdbm3 libgmp10 libgnutls-deb0-28 libgnutls-openssl27 libhogweed2 libicu52
  libidn11 libirs-export91 libisc-export95 libisccfg-export90 libjson-c2
  liblocale-gettext-perl liblogging-stdlog0 liblognorm1 libmnl0
  libnetfilter-acct1 libnettle4 libnewt0.52 libnfnetlink0 libp11-kit0
  libpipeline1 libpopt0 libpsl0 libtasn1-6 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libxtables10 logrotate man-db
  manpages nano net-tools netbase netcat-traditional nfacct rsyslog traceroute
  vim-common vim-tiny wget whiptail
0 upgraded, 62 newly installed, 0 to remove and 0 not upgraded.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = (unset),
	LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Need to get 0 B/18.0 MB of archives.
After this operation, 61.6 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = (unset),
	LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
0% [Working]Use of uninitialized value $result in scalar chomp at /usr/lib/apt/methods/bootstrap line 73.
Use of uninitialized value $result in string eq at /usr/lib/apt/methods/bootstrap line 74.
Err bootstrap:/ ./main init-system-helpers all 1.22
  
0% [Working]Use of uninitialized value $result in scalar chomp at /usr/lib/apt/methods/bootstrap line 73.
Use of uninitialized value $result in string eq at /usr/lib/apt/methods/bootstrap line 74.
Err bootstrap:/ ./main cron amd64 3.0pl1-127+deb8u1
  
0% [Working]Use of uninitialized value $result in scalar chomp at /usr/lib/apt/methods/bootstrap line 73.
Use of uninitialized value $result in string eq at /usr/lib/apt/methods/bootstrap line 74.
Err bootstrap:/ ./main libapt-inst1.5 amd64 1.0.9.8.3

[...]

E: Failed to fetch bootstrap:/pool/main/i/init-system-helpers/init-system-helpers_1.22_all.deb  

E: Failed to fetch bootstrap:/pool/main/c/cron/cron_3.0pl1-127+deb8u1_amd64.deb  

E: Failed to fetch bootstrap:/pool/main/a/apt/libapt-inst1.5_1.0.9.8.3_amd64.deb  

E: Failed to fetch bootstrap:/pool/main/libe/libestr/libestr0_0.1.9-1.1_amd64.deb  

E: Failed to fetch bootstrap:/pool/main/g/gdbm/libgdbm3_1.8.3-13.1_amd64.deb  

E: Failed to fetch bootstrap:/pool/main/j/json-c/libjson-c2_0.11-4_amd64.deb

[...]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Failed to run apt-get!

The problem is not dependent on armhf, it also does not work without specifying an architecture.

Any ideas? :-)

Offline

Board footer

Powered by FluxBB