When I try to install anything using snap, I found out that the download speed is very slow. As shown in the screenshot, it is about 20 kb/s:
How can I install a snap fast?
When I try to install anything using snap, I found out that the download speed is very slow. As shown in the screenshot, it is about 20 kb/s:
How can I install a snap fast?
I encountered a same problem. Snap uses Fastly CDN, which means your speed is determined by which Fastly CDN node you get. If you get a nearest one, the speed can be very quick.
You can execute this command to find out which node you got: dig fastly.cdn.snapcraft.io For me, it was 151.101.26.217 and very slow.
So I changed it to 151.101.62.217 in /etc/hosts and the speed improved from 10k/s to 1M/s. I installed pycharm in 5 minutes.
How to set hosts? Just add a new line in your /etc/hosts:
151.101.62.217 fastly.cdn.snapcraft.io
Add the following config to your /etc/hosts:
91.189.91.43 darkbowser.canonical.com
Then you will get a very fast speed.
The following works for me in China. Download speed increased from 20kB to 900kB/s.
sudo snap install snap-store-proxy
sudo snap install snap-store-proxy-client
I tried the answer by Genghis Yang but no improvement for me.
Use dns checker service on the web to get the nearest ip of fastly.cdn.snapcraft.io, in my case it went up from 25KB/s to 25MB/s
84.200.69.80 (DNS.WATCH - DE)
This one is working for me awesome. I was getting 40Kb after adding this I get 3Mb plus.
sudo nano /etc/hosts
91.189.91.43 darkbowser.canonical.com