Cant resolve host name

My qubes system can’t resolve any host. I’ve been trying several times, different templates (debian, whonix).

For example when trying to add a repo to my whonix WS 17 template with:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

I’m getting following error:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

error: Can’t load uri https://flathub.org/repo/flathub.flatpakrepo: While fetching https://flathub.org/repo/flathub.flatpakrepo: [6] Couldn’t resolve host name

zsh: exit 1 flatpak remote-add --if-not-exists flathub

How can I solve this issue. Basically can’t install any application from the terminal if it has to resolve an host name.

Thanks for your help

It’s the expected result in a template. In order to run your flatpak command in a template, you need to use the proxy.

Look for how-to install something in a template in the docs and there was a recent question about flatpak in the forum.

I have been installing applications into template since ever I’m using Qubes. No issues. The problem is not only with flatpaks. Also I have followed the official qubes installation guide as seen here:

So I dont think this is the expected result in a template.

Would be great if you add a link to the recent question you have mentioned.

This is because the package manager knows about the proxy in the template, which allows to download packages.

Flatpack is not aware of it.