#1020288 debos: unable to resolve host address

Package:
debos
Source:
debos
Description:
Debian OS builder
Submitter:
Arnaud Rebillout
Date:
2026-11-04 04:07:02 UTC
Severity:
normal
#1020288#5
Date:
2022-09-19 11:09:44 UTC
From:
To:
Dear Maintainer,

at the moment debos (and fakemachine) is broken in unstable:

~~~~
$ cat debootstrap.yaml
architecture: amd64

actions:
  - action: debootstrap
    suite: stable

$ debos debootstrap.yaml
Running /debos --artifactdir /home/arno/kali/proj/vm-images/kali-vm/tmp /home/arno/kali/proj/vm-images/kali-vm/tmp/debootstrap.yaml using kvm backend
2022/09/19 10:49:09 ==== debootstrap ====
2022/09/19 10:49:09 Debootstrap | W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
2022/09/19 10:49:09 Debootstrap | W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
2022/09/19 10:49:09 Debootstrap | I: Target architecture can be executed
2022/09/19 10:49:09 Debootstrap | I: Retrieving InRelease
2022/09/19 10:49:09 Debootstrap | I: Retrieving Release
2022/09/19 10:49:09 Debootstrap | E: Failed getting release file http://deb.debian.org/debian/dists/stable/Release
2022/09/19 10:49:09 debootstrap.log | amd64: ok
2022/09/19 10:49:09 debootstrap.log | wget: unable to resolve host address 'deb.debian.org'
2022/09/19 10:49:09 debootstrap.log | wget: unable to resolve host address 'deb.debian.org'
2022/09/19 10:49:09 Action `debootstrap` failed at stage Run, error: exit status 1
Powering off.
~~~~

Hostname resolution broke because systemd-resolved was split out of the
systemd package, and now it lives in its own package systemd-resolved.
On my system, systemd-resolved is not installed, hence the failure
above. Apparently systemd-resolved is mandatory for the kvm backend?
What about the uml backend?

At a first glance, it seems that debos (and fakemachine) should now
Depend on systemd-resolved. However it's a bit more complicated.

Installing the package systemd-resolved has MAJOR consequences:
- the postinst script will remove /etc/resolv.conf, and replace it with
  a symlink to ../run/systemd/resolve/stub-resolv.conf
- the service systemd-resolved will be enabled

This behavior makes sense when a user manually installs systemd-resolved
(because they want to use it for name resolution). But when installing
debos, enabling name resolution via systemd-resolved at the same time is
surely an unintended (and unexpected) effect.

I don't know how to handle that. I don't know if it would be possible to
rework the systemd-resolved package and split it, so that it's possible
to install the binaries, without actually enabling it. Maybe we should
ask the systemd maintainer, but I wanted to get your impression first.

Thanks!

Arnaud

#1020288#8
Date:
2022-10-26 17:06:39 UTC
From:
To:
Hello,

Bug #1020288 in debos reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/go-team/packages/debos/-/commit/75ce730c9418d8643d7de522cfd0196d7d70154c
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1020288

#1020288#15
Date:
2022-10-27 08:36:08 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
debos, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1020288@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Obbard <chris.obbard@collabora.com> (supplier of updated debos package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 27 Oct 2022 08:52:37 +0100
Source: debos
Architecture: source
Version: 1.1.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
Changed-By: Christopher Obbard <chris.obbard@collabora.com>
Closes: 989145 1008762 1020288 1020691 1020917 1022362
Changes:
 debos (1.1.1-1) unstable; urgency=medium
 .
   * New upstream release (Closes: #1020917)
   * Add myself to list of uploaders
   * Point d/watch at tagged releases
   * Add systemd-resolved to Recommends (Closes: #1020288, #1020691)
   * Add user-mode-linux & libslirp-helper to Suggests
   * Fix grammatical mistakes in package Description
   * Don't require fakemachine for autopkgtests (Closes: #989145)
   * Bump Standards-Version to 4.6.1
   * Bump build dependency on golang-github-go-debos-fakemachine-dev
      - Fakemachine now works with kernel >=5.13 (Closes: #1008762)
      - Fakemachine lib package now depends on required
         libs (Closes: #1022362)
   * Don't include duplicate Build-Depends from fakemachine
Checksums-Sha1:
 3c3cd3da56213c68315c029dfa80f537488da380 2517 debos_1.1.1-1.dsc
 b0c92e8e3a7024e87df325e62564662616e6fc40 52452 debos_1.1.1.orig.tar.gz
 e589f64ae2417090c9578876bc40bcfc8f0e2512 4788 debos_1.1.1-1.debian.tar.xz
 8223718ea4d4b066a98a9ee402c55cdee0794c11 13052 debos_1.1.1-1_source.buildinfo
Checksums-Sha256:
 6b1db083605a3aa44b37b00f83f063426187b8fd27da381dc41396222fd29519 2517 debos_1.1.1-1.dsc
 0c7d0e302ad2d106dbf37e170459241c11e44f1b49d50070f51b2ece6739bcf2 52452 debos_1.1.1.orig.tar.gz
 d6cb83349c157ecc3fe956b52f8b203678349261324e95ed430b1b05e06396b3 4788 debos_1.1.1-1.debian.tar.xz
 7e8818fff76616238e13af56145ba1258e7c59acea2597516c8a50e91f71fb91 13052 debos_1.1.1-1_source.buildinfo
Files:
 b10687ea24f0144ef8c3f806647d0756 2517 devel optional debos_1.1.1-1.dsc
 0c002f5ed9fa176a042b077bc44f8a71 52452 devel optional debos_1.1.1.orig.tar.gz
 24443ad1b2bdcb431af8727a7b898e49 4788 devel optional debos_1.1.1-1.debian.tar.xz
 398e29fd4b4c84b537fb1bade9188406 13052 devel optional debos_1.1.1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEE8Yvci2wl+QqiPVF0Y03E8GhwRvgFAmNaOlwbHGNocmlzLm9i
YmFyZEBjb2xsYWJvcmEuY29tAAoJEGNNxPBocEb4a6UP/27+J67mDcoH8II8sz+s
ct8nuweZRKLnmJSvj9C4505L3gM+NZuFb+yjUdWUto2ogbeGwO58be+WUX+oQVzf
HYzaf6iI0rBZw8LwQfexv3j4qnGF0x/MJEZi+CPDzfTIIKMJiI64IpfksLZY73LI
ngLEzFF4mnt5H23pt/Hq4K5KbPicA/pOdaJm8VHXtRx4KEwuSqU6yqG015aBR1xo
+bOfvlYE8DaNPIlGjh8esXIkp83sWiiDmNs8ElZRN7dB6H6+WKC/ShxgKG9EYIRk
h2Y3CPrp95obpecUc2IVr6PnNjXIc0npucyj7PVUJOQtayvkCIaSQB0HD1DXtXyk
XUi3FaGIIlqGcya5ldddFro0EZR5V+t/kcRO6SPHuCi/bP2G7zjwmFQhdwade+zE
8x3VDnwfMiyt+rF6bHBsdXS/8GrnTNhAa3a8MQ/UKUiwHxqyqhrcExZnYiWy3ExY
8SeyUnsbCom5p3vF4G9wR4SED1G9dNaTy0LMRFf2i6SgagBj2DzSk5To3jlvGqQq
alVfgR6neq3JR9X0wCYsKh7lQ+irWB8b28zDqaPDurboTYODrbc5gPDyW9AFZGTG
Iz+x8MJo393EmerdA98shcFNODy+duKU/rODQBW0no+a0WLIzHehXCGqCb9lT40u
TyWMYDdfGatweEG5zmaeujNx
=dKW5
-----END PGP SIGNATURE-----

#1020288#20
Date:
2022-11-17 09:44:16 UTC
From:
To:
Control: reopen -1
Control: found -1 1.1.1-2

I installed debos, but without systemd-resolved:

root@prancing-pony:~# aptitude install debos systemd-resolved=
The following NEW packages will be installed:
  bmap-tools{a} debos ipxe-qemu{a} libbpf0{a} libbrlapi0.8{a} libcacard0{a}
libcapstone4{a} libdaxctl1{a} libexecs0{a} libfdt1{a} libndctl6{a} libnss-
mymachines{a}
  libostree-1-1{a} libpmem1{a} libslirp0{a} libspice-server1{a}
libusbredirparser1{a} libvdeplug2{a} libvirglrenderer1{a} libvte-2.91-0{a}
libvte-2.91-common{a}
  ovmf{a} qemu-system-common{a} qemu-system-data{a} qemu-system-gui{a} qemu-
system-x86{a} seabios{a} systemd-container{a}
The following packages are RECOMMENDED but will NOT be installed:
  systemd-resolved

Then tried it

$ sudo debos debos-recipes/debian-quartz64a.yaml
[sudo] password for diederik:
Running /debos --artifactdir /home/diederik/dev/github/cp-quartz64-images /
home/diederik/dev/github/cp-quartz64-images/debos-recipes/debian-
quartz64a.yaml --internal-image /dev/disk/by-fakemachine-label/fakedisk-0
using kvm backend
2022/11/17 09:31:13 ==== recipe ====
2022/11/17 09:31:13 ==== debootstrap ====
2022/11/17 09:31:14 Debootstrap | I: Retrieving InRelease
2022/11/17 09:31:14 Debootstrap | I: Retrieving Release
2022/11/17 09:31:14 Debootstrap | E: Failed getting release file https://
deb.debian.org/debian/dists/bookworm/Release
2022/11/17 09:31:14 debootstrap.log | wget: unable to resolve host address
'deb.debian.org'
2022/11/17 09:31:14 debootstrap.log | wget: unable to resolve host address
'deb.debian.org'
2022/11/17 09:31:14 Action `recipe` failed at stage Run, error: exit status 1
2022/11/17 09:31:14 Warning: Failed to get unmount /: invalid argument
2022/11/17 09:31:14 Unmount failure can cause images being incomplete!
Powering off.

FWIW: Exact same result without sudo

diederik@prancing-pony:~/dev/github/cp-quartz64-images$ ping deb.debian.org
PING debian.map.fastlydns.net (146.75.118.132) 56(84) bytes of data.
64 bytes from 146.75.118.132 (146.75.118.132): icmp_seq=1 ttl=57 time=20.7 ms
64 bytes from 146.75.118.132 (146.75.118.132): icmp_seq=2 ttl=57 time=23.4 ms
^C
--- debian.map.fastlydns.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 20.686/22.025/23.364/1.339 ms

So my system has no problem with resolving addresses, but debos does when
systemd-resolved is NOT installed.
So it looks to me it should be a hard Dependency, not a Recommends.

#1020288#29
Date:
2026-11-04 02:30:14 UTC
From:
To:
Hello,

Bug #1020288 in debos reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/go-team/packages/debos/-/commit/e05ad9e3b7ac3bd8bb9cfa0c6f1fee023ee23284
------------------------------------------------------------------------
d/control: move systemd-resolved from Depends to Suggests

systemd-resolved was added to Depends for fakemachine's networking
(#1115880), but installing it replaces the host's DNS configuration,
which is an unwelcome side effect of installing debos. Since
fakemachine 0.0.13, which debos embeds, systemd-resolved is optional:
when it is not present on the host, fakemachine generates
/etc/resolv.conf inside the machine from the DHCP lease instead.

Since debos works without it, Suggests is enough. Recommends would
still pull it in by default and change the host's resolver.

Closes: #1020288
Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1020288

#1020288#36
Date:
2026-11-04 04:05:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
debos, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1020288@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christopher Obbard <chris.obbard@oss.qualcomm.com> (supplier of updated debos package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 04 Nov 2026 02:53:49 +0000
Source: debos
Architecture: source
Version: 1.1.8-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Closes: 1020288 1070762 1116503 1148014
Changes:
 debos (1.1.8-1) unstable; urgency=medium
 .
   * New upstream release
   * d/watch: switch to version 5 format
   * d/control: update my email address in Uploaders
   * d/control: sort with wrap-and-sort
   * d/control: bump fakemachine build-dependency to 0.0.13 (Closes: #1070762)
   * d/control: update Maintainer address to team+pkg-go@tracker.d.o
   * d/control: bump Standards-Version to 4.7.4
   * d/control: drop Suggests on libslirp-helper and user-mode-linux
     (Closes: #1116503)
   * d/control: drop busybox-static alternative from Depends (Closes: #1148014)
   * d/control: move systemd-resolved from Depends to Suggests (Closes: #1020288)
   * d/control: depend on ipxe-qemu
   * d/rules: use pkg-info.mk instead of parsing changelog
   * d/watch: verify signed upstream tags
   * d/gbp.conf: use upstream git tags instead of pristine-tar
   * d/copyright: add Qualcomm copyright for debian/*
   * d/README.source: remove
   * d/gitlab-ci.yml: remove
   * d/control: put Static-Built-Using on a single line
   * d/gbp.conf: set debian-branch to debian/sid
   * d/control: list Depends before Recommends
   * d/tests: add smoke test running a recipe in fakemachine
   * d/control: recommend unzip instead of zip
   * d/control: drop bmap-tools from Recommends
   * d/control: drop ovmf from Recommends
   * d/control: move debootstrap to Recommends
   * d/README.Debian: document optional runtime tools
   * d/rules: restore upstream debos.md after building the manpage
Checksums-Sha1:
 70d60367619727a0ef44e7421448030578b26b10 2557 debos_1.1.8-1.dsc
 5f8e1cd794778b6cbd3e5dfe91535f93a94b8f14 90829 debos_1.1.8.orig.tar.gz
 a5448e808581e733a1b74f4d35612360b1488adc 12048 debos_1.1.8-1.debian.tar.xz
 193ba3f6beb2587c8ed16b5076213b744f5fcc6c 7389 debos_1.1.8-1_source.buildinfo
Checksums-Sha256:
 42e130d612700c49b19418d9e16f1ada2c02897732c66b77492dc3eb17be7170 2557 debos_1.1.8-1.dsc
 e7784cafcfb9af05365e6695c7d7b6732a26acf76973d609da4e4ee4af2d17d1 90829 debos_1.1.8.orig.tar.gz
 d1a6e067a1018340208d27ffd6aa930eebbed8eb288292859ac4eb8c69353372 12048 debos_1.1.8-1.debian.tar.xz
 4c1b2f6ef662e274924e261bc29d8fb1a51f409b468f7ae5f79c8d0c613b8e0e 7389 debos_1.1.8-1_source.buildinfo
Files:
 5b5bf06fb110fa9ad4b02f306f0434ab 2557 devel optional debos_1.1.8-1.dsc
 e6f5585ccbd031a95c25364239bf1b7d 90829 devel optional debos_1.1.8.orig.tar.gz
 31b6a9d9fbdb8ecd12e543f26a5a1225 12048 devel optional debos_1.1.8-1.debian.tar.xz
 e19cf474dcb1776f96f1d6db09025824 7389 devel optional debos_1.1.8-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE8Yvci2wl+QqiPVF0Y03E8GhwRvgFAmrqqzIACgkQY03E8Ghw
RvhATBAAi+TA7fG5lSUNvVIgpUJS1gWXnJDkWAXgmb8NrMWXz12Y38lqW4RjtGe7
+yl6Z4zgUXnx11hrmk2buc2CH8e5G25eQQLPeSfZhHSATSnQHU642ejBFgvppwwA
VR0ZlXNDT3crm628+X2nk3bMcPj7dYpFGCGYPXOu5ObtOlNeNxI9JtdIxPt8Y+Ch
W3eiUBVCV4GQMBuq7Skm5TZZDGjyeLOUUNxns1iRoHwmsjRUIp+6iOYGZIDNNnKU
4cKM2fSY/18hZhNUQukyPBOvz2+2LbuI2/+aTm0qtTXDH2fKpgK6GkWowlyue3Tk
M56gfipSyHJ+oWkkl2NavJ3Z2f+duvGHa2TeShBYJaKWloesBd2aOvdRuDFcWNOj
8WvYB2829vXeBGQ8Zs0Yuikv6+wxieZSQkpyV5JUpEEAgq/98hh/m4qof5mly9PL
ZgZabj5NZ+TADFErzcRO/IAaj6CC0vgz7AKegJRT7K/IdCpAvTFHoIi5c20/NZOy
9cPUFZQdjyJJgxMDw+nOKwnHSSTCMiuIBb80vRIFUmQ3MFQDOncjQ3B3BZuSXVKv
dK+5D6TqMWE8dzMYj6OHSWa273sXHmu0fcNnCLAQyCWKl2H9wkvC/KbSEv+81HfV
WMROKs/iLxieKBsiYRWwlwAYgwydkG+L6P1yBGw1M3acSKsP6WQ=
=PwBW
-----END PGP SIGNATURE-----