Supervised Debian 11 installation

Hi!

After the SSD of my Home Assistant installation died, I am reinstalling on an old machine I had lying around. I followed these guidelines for a supervised install on Debian 11. Everything works like a charm, except for the last step (the home assistant installation).

Relevant output:

(...)
[info] Restarting NetworkManager
[info] Restarting docker service
ping: version.home-assistant.io: Name or service not known
[info] Waiting for version.home-assistant.io - network interface might be down...
PING version.home-assistant.io (104.26.5.238) 56(84) bytes of data.
64 bytes from 104.26.5.238 (104.26.5.238): icmp_seq=1 ttl=59 time=18.1 ms

--- version.home-assistant.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 18.093/18.093/18.093/0.000 ms
[info] Install supervisor Docker container
Error response from daemon: Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io on [::1]:53: read udp [::1]:43041->[::1]:53: read: connection refused
(...)

Probably something trivial but I cannot seem to figure it out. Any ideas?

Seems similar to this one. I added ghcr.io to /etc/hosts and that did the trick.