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.
solene
February 2, 2025, 7:48pm
4
This is because the package manager knows about the proxy in the template, which allows to download packages.
Flatpack is not aware of it.
This features:
Auto update with the template
Using GNOME Software to install flatpak if you don’t want the command line
Automatic Application menu syncing when adding/removing programs with flatpak