Debian 12 - problem updating

Did you get this error after trying to install github CLI tool?
cli/docs/install_linux.md at trunk · cli/cli · GitHub

This will download the gpg key using wget:

	&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \

So it won’t work as is in the template because it doesn’t have the network connection by default.
You need to configure wget to use proxy for it to work:

E.g. change it to:

	&& https_proxy=http://127.0.0.1:8082/ http_proxy=http://127.0.0.1:8082/ wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \