Xubuntu 20.04 & snap: "127.0.0.1:443: connect: connection refused"
Posted: Fri Nov 15, 2024 10:04 pm
[PROBLEM]
I had the following lines in my "/etc/hosts":
Well... To literally disable automatic updates. I really like my setups stable and well-known.
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 )
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 )