Container Build Error

I’m using the “Building Using Containers” instructions to install QGroundControl on an Ubuntu 20.04.2 Virtual Machine.

After running
docker build --file ./deploy/docker/Dockerfile-build-linux -t qgc-linux-docker .

I get an error:
INFO - aqtinstall(aqt) vunknown on Python 3.8.5
WARNING - Connection to the download site failed and fallback to mirror site.
ERROR - Connection to the download site failed. Aborted...

and the following message:
The command '/bin/sh -c /tmp/qt/install-qt-linux.sh' returned a non-zero code: 1

Hi, not that I have used that QGC container myself, but looking at the script install-qt-linux.sh when the docker image is built the Qt framework is installed by means of aqtinstall [1]
pip3 install aqtinstall
and from the error message you posted it looks like somehow (i.e. network connectivity, old URL for mirror site, etc) that installer cannot get the Qt framework properly.

You may want to check that aqtinstall tool to see what endpoints is trying to access in order to download Qt and try manually, or outside Docker to see if that tool is really working for your environment.

[1] GitHub - miurahr/aqtinstall: aqt: Another (unofficial) Qt CLI Installer on multi-platforms