How to install flatpak on debian-10

Hi unman,
after I had installed “flatpak” and “gnome-software-plugin-flatpak” I then proxied
“export https_proxy=127.0.0.1:8082”
and tried to ad the flatpakrepo
“flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Adding the repo only worked when the template was attached to a net-vm - otherwise it showed an error although I proxied it ==>“Can’t load uri https://flathub.org/repo/flathub.flatpakrepo: Error resolving “flathub.org”: Name or service not known”.

My current work around is to install “flatpak” and “gnome-software-plugin-flatpak” in the template-vm. Then I create my app-vm and
“binds+=( ‘/var/lib/flatpak’ )”
After a restart I attach it to a net-vm, add the repo and install the desired app.