I'm puzzled. Whenever I do a package-refresh-contents or whenever I try to launch mastodon.el (M-x mastodon) my #emacs hangs. package-refresh-contents only shows 'Contacting host: elpa.gnu.org:443' and doesn't do much more. I have to ctlr-g to break out or wait a couple of minutes before emacs says that the package refresh is done. mastodon.el is a different beast. After a wait I get 'Wrong type argument: stringp, nil'.
Thing is, this does not happen when I'm on the vpn for work!
My two other computers at home experience the exact same issue. These two don't have any vpn software installed, just plain debian. The computer with the vpn is a Windows 10 with WSL2 running debian as well. I use cntlm when on the vpn and I set my proxy accordingly. On my plain debian home boxes I don't use any proxy. I use the same .emacs file on all three machines.
Was it a debian apt-get update that did this to me? I have no idea. Anyone here with a similar issue?
I'll be damned... Switching to ipv4 makes it work again:
root@msi:/home/gargle# /sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=1net.ipv6.conf.all.disable_ipv6 = 1
root@msi:/home/gargle# /sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1net.ipv6.conf.default.disable_ipv6 = 1
Now I can M-x mastodon and I can use package-refresh-contents.
Why this? I have to look at all of the debian changes of the month.