0

On Emacs 26.3, Ubuntu 20.04, when I run

emacs -Q

followed by

(package-refresh-contents)

I get

Contacting host: elpa.gnu.org:443

So the package refresh just hangs. I tried to switch from https to http, but no luck.

  • FWIW there was a bug about this (closed as unfixed). I still have the issue (Emacs hangs, not only stuck at "Contacting host: ...") with GNU Emacs 26.1 – Httqm Nov 4 at 11:13
0

Having a similar issue with the MELPA stable repository (GNU Emacs 26.1 on Debian 10.6), I've been able to workaround this with :

(package-initialize)
(setq package-check-signature nil)
(require 'package)
(setq package-archives '(
    ("melpa-stable" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/")
    )
)

with some limitations / remarks :

| improve this answer | |
  • I suggest you to look into fixing HTTPS. It will affect far more than just fetching packages. The package signature part isn't required if you only use MELPA. – wasamasa Nov 5 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.