Code: Select all
sudo snap install btop
[SOLUTION][sudo] password for user:
error: cannot install "btop": Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp
127.0.0.1:443: connect: connection refused
I had the following lines in my "/etc/hosts":
Code: Select all
# Hack to disable automatic snap updates:
127.0.0.1 api.snapcraft.io
Anyways: Disable the localhost-loopback line, and the above command will work as expected again.
(Don't forget to re-enable the loopback afterwards, to disable auto-updates )