this post was submitted on 27 Nov 2023
0 points (50.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] johlae@alien.top 1 points 1 year ago

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.