Bug#845925: autopkgtest customize script for vmdebootstrap is unable to resolve httpredir.debian.org

Johannes Schauer josch at debian.org
Sun Nov 27 00:28:35 UTC 2016

Package: autopkgtest
Version: 4.2.1
Severity: normal


as the man page suggests, I'm running:

$ AUTOPKGTEST_APT_PROXY= sudo vmdebootstrap --verbose --serial-console --distribution=sid --customize=/usr/share/autopkgtest/setup-commands/setup-testbed --user=test/test --size=1000000000 --grub --image=autopkgtest-sid.raw                                                                                         
Creating disk image
Creating partitions
Creating filesystem ext4
Mounting /dev/mapper/loop0p1 on /tmp/tmpmc1xY2
Debootstrapping sid [amd64]
Give root an empty password
Removing udev persistent cd and net rules
Enabling systemd-networkd for DHCP
Enabling systemctl-resolved for DNS
Running customize script /usr/share/autopkgtest/setup-commands/setup-testbed
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
WARNING: update-grub failed!
Err:1 http://httpredir.debian.org/debian sid InRelease
  Temporary failure resolving 'httpredir.debian.org'
Reading package lists... Done
W: Failed to fetch http://httpredir.debian.org/debian/dists/sid/InRelease  Temporary failure resolving 'httpredir.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  libdbus-1-3 libeatmydata1 libexpat1
Suggested packages:
  default-dbus-session-bus | dbus-session-bus
The following NEW packages will be installed:
  dbus eatmydata libdbus-1-3 libeatmydata1 libexpat1
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 509 kB of archives.
After this operation, 1435 kB of additional disk space will be used.
Err:1 http://httpredir.debian.org/debian sid/main amd64 libdbus-1-3 amd64 1.10.12-1
  Temporary failure resolving 'httpredir.debian.org'
Err:2 http://httpredir.debian.org/debian sid/main amd64 libexpat1 amd64 2.2.0-1
  Temporary failure resolving 'httpredir.debian.org'
Err:3 http://httpredir.debian.org/debian sid/main amd64 dbus amd64 1.10.12-1
  Temporary failure resolving 'httpredir.debian.org'
Err:4 http://httpredir.debian.org/debian sid/main amd64 libeatmydata1 amd64 105-5
  Temporary failure resolving 'httpredir.debian.org'
Err:5 http://httpredir.debian.org/debian sid/main amd64 eatmydata all 105-5
  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/d/dbus/libdbus-1-3_1.10.12-1_amd64.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/e/expat/libexpat1_2.2.0-1_amd64.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/d/dbus/dbus_1.10.12-1_amd64.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/libe/libeatmydata/libeatmydata1_105-5_amd64.deb  Temporary failure resolving 'httpredir.debian.org'
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/libe/libeatmydata/eatmydata_105-5_all.deb  Temporary failure resolving 'httpredir.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
EEEK! Something bad happened...
Command failed: /usr/share/autopkgtest/setup-commands/setup-testbed /tmp/tmpmc1xY2 autopkgtest-sid.raw

Cleaning up
Umounting /tmp/tmpmc1xY2
ERROR: Command failed: /usr/share/autopkgtest/setup-commands/setup-testbed /tmp/tmpmc1xY2 autopkgtest-sid.raw

This problem appears with or without AUTOPKGTEST_APT_PROXY set. My host
is able to resolve httpredir.debian.org just fine:

$ ping -c 4 httpredir.debian.org
PING httpredir.debian.org ( 56(84) bytes of data.
64 bytes from httpredir-bm-01.debian.org ( icmp_seq=1 ttl=41 time=49.1 ms
64 bytes from httpredir-bm-01.debian.org ( icmp_seq=2 ttl=41 time=47.5 ms
64 bytes from httpredir-bm-01.debian.org ( icmp_seq=3 ttl=41 time=45.8 ms
64 bytes from httpredir-bm-01.debian.org ( icmp_seq=4 ttl=41 time=53.9 ms

This is with vmdebootstrap (= 1.7-1).


cheers, josch

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autopkgtest depends on:
ii  apt-utils       1.3
ii  libdpkg-perl    1.18.13
ii  procps          2:3.3.12-2
ii  python3         3.5.1-4
ii  python3-debian  0.1.29

Versions of packages autopkgtest recommends:
pn  autodep8  <none>

Versions of packages autopkgtest suggests:
ii  lxc          1:2.0.5-1
pn  lxd-client   <none>
ii  qemu-system  1:2.6+dfsg-3
ii  qemu-utils   1:2.6+dfsg-3
ii  schroot      1.6.10-2+b1

-- no debconf information

More information about the autopkgtest-devel mailing list