aaI want to install xmind on my template using snap!

I want to install xmind via snap on debian template, debian12-12-xfce,

error: cannot install “xmind”: persistent network error: Post “https://api.snapcraft.io/v2/snaps/refresh”: dial tcp: lookup api.snapcraft.io on 1.0.0.1:53: dial udp 1.0.0.1:53: connect: network is unreachable

I can’t install with the following error message.

I was also trying to install --proxy, which was successful during the Brave installation here, but sudo snap install --proxy=https://127.0.0.1 -s xmind

It didn’t work well, probably because --proxy is used in combination with curl to begin with. I’m sure there is a better way to do this, but I would appreciate it if you could let me know.

1 Like

Thanks, I installed snapd and qubes-snapd-helper, restarted the template and put in the same commands,

error: cannot install “xmind”: persistent network error: Post “https://api.snapcraft.io/v2/snaps/refresh”: dial tcp: lookup api.snapcraft.io on 1.0.0.1:53: dial udp 1.0.0.1:53: connect: network is unreachable

I get the same error. I think I have encountered the same phenomenon some time ago. I wonder if other users are getting the same error…?

That guide is for installing snap inside AppVM and not in template.
Do you really need to install the snap in your template instead of AppVM?
You can try like this then:

sudo https_proxy=http://127.0.0.1:8082/ http_proxy=http://127.0.0.1:8082/ snap install -s xmind
1 Like

I have tried copy pasting and pasting in both AppVM and TemplaeteVM and get the same error.

sudo https_proxy=http://127.0.0.1:8082/ http_proxy=http://127.0.0.1:8082/ snap install -s xmind

and I get error: unknown flog ‘s’ and if I remove the -s,

error: cannot install “xmind”: persistent network error: Post “https://api.snapcraft.io/v2/snaps/refresh”: dial tcp: lookup api.snapcraft.io on 1.0.0.1:53: dial udp 1.0.0.1:53: connect: network is unreachable

Is it preferable to use only one of http or https?

You can try like this then:

sudo snap set system proxy.http="http://127.0.0.1:8082"
sudo snap set system proxy.https="http://127.0.0.1:8082"
sudo snap install xmind
1 Like

I tried the command you gave me. The proxy settings in the top two lines were ok, but the last one,

sudo snap install xmind

I get an error like this

sudo snap install xmind
error: cannot install “xmind”: Post “https://api.snapcraft.io/v2/snaps/refresh”: proxyconnect tcp: dial tcp 127.0.0.1:. 8082: connect: connection refused

If you don’t mind, please take the next step!

Did you run these command in your template or in AppVM?
These commands are for template.
What’s the output of this command in your template?

curl --proxy http://127.0.0.1:8082/ https://api.snapcraft.io/v2/snaps/refresh
1 Like

I thought it was safer to do it in AppVM, so I was running it in the non-template way. I also tried running it with the template, but I am getting errors here as well.

error: cannot install “xmind”: persistent network error: Post “https://api.snapcraft.io/v2/snaps/refresh”: dial tcp: lookup api.snapcraft.io on 1.0.0.1:53: dial udp 1.0.0.1:53: connect: network is unreachable

curl --proxy http://127.0.0.1:8082/ https://api.snapcraft.io/v2/snaps/refresh

command returns results like this.

<!doctype html> 405 Method Not Allowed

Method Not Allowed

The method is not allowed for the requested URL .

If you want to install it in AppVM then follow the guide that I linked in my first post.

Did you run these commands:

sudo snap set system proxy.http="http://127.0.0.1:8082"
sudo snap set system proxy.https="http://127.0.0.1:8082"

Befo running this one?

sudo snap install xmind
1 Like

Yes, by Template…

sudo snap set system proxy.http=“http://127.0.0.1:8082
sudo snap set system proxy.https=“http://127.0.0.1:8082

After running,

sudo snap install xmind.

AppVM already,

sudo snap set system proxy.http=“http://127.0.0.1:8082” sudo snap set system proxy.https=“http://127.0.0.1:8082

so it may be necessary to remove this setting once.

Not sure why it’s not working in template, I don’t use snap so I can’t test it myself right now.
To remove the snap proxy settings you can do this:

sudo snap set system proxy.http=""
sudo snap set system proxy.https=""
1 Like

Thanks.

sudo snap set system proxy.http=“” sudo snap set system proxy.https=“”

Once again, after removing the proxy settings with,

sudo snap install xmind, but,

error: cannot install “xmind”: persistent network error: Post “https://api.snapcraft.io/v2/snaps/refresh”: dial tcp: lookup api.snapcraft.io on 1.0.0.1:53: dial udp 1.0.0.1:53: connect: network is unreachable

I get this error. Hmmm, for some reason it seems to only work in my environment when I try to do a snap in AppVM.

Maybe I didn’t get you right, I thought you’ve run the snap set system proxy commands in AppVM and then you couldn’t install snap in AppVM anymore, that’s why I’ve told you how to unset snap system proxy in AppVM.

To install snap in template you need to set proxy for snap somewhere, but if:

sudo snap set system proxy.http="http://127.0.0.1:8082"
sudo snap set system proxy.https="http://127.0.0.1:8082"

or

sudo https_proxy=http://127.0.0.1:8082/ http_proxy=http://127.0.0.1:8082/ snap install xmind

Is not working then I don’t know what else to try.

I’ve just tried it and it worked for me in debian-12-xfce template:

sudo snap set system proxy.http="http://127.0.0.1:8082"
sudo snap set system proxy.https="http://127.0.0.1:8082"
sudo snap install xmind
1 Like

Thanks, I was able to install mine on the debian-12-xfce template. And on Qubes, which is quarantined from the internet,

xmind

command and was even able to boot successfully! Thanks. I’m glad you were able to solve the system time issue as well.