Creating VM image for hours
I run a x86 machine with unbuntu 20.04 installed on windows. When running ./scripts/mkimg.sh, it takes hours and still didn't have a sign finishing. Is it because the mirror site too slow?
I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
It is likely so. You can try appending a mirror URL to the debootstrap line in the script. Usage example at the end of this link. Please try choosing a mirror near your location from the list of mirrors.
Met the same issue today. Turns out to be a bad ipv6 route. I can successfully finish debootstrap by disabling ipv6 by adding those to sysctl.conf and then sysctl -p:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
There are other methods to disable IPv6 depending on different network manager. Otherwise, fixing the ipv6 route configuration on the network would also help.