5

Emacs 26.1 as packaged in Debian buster.

After doing M-x package-list-packages I can select any package from the MELPA repo https://melpa.org/packages/ and then install it. But when I try to get any package from the GNU ELPA repo https://elpa.gnu.org/packages/ I get an error:

Contacting host: elpa.gnu.org:443
package-install-from-archive: https://elpa.gnu.org/packages/ack-1.8.tar: Bad Request

And of course I get the same error if I try to install it directly, outside the package menu with M-x package-install <RET> ack.

When I browse elpa.gnu.org with Firefox I can download the file just fine, and I can also download it directly from the command line with

curl -L -O https://elpa.gnu.org/packages/ack-1.8.tar

What gives?

Update: I found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942413 . But I checked and I already have the latest signing key in ~/.emacs.d/elpa/gnupg , namely 066DAFCB81E42C40. So my problem must be different.

1

1 Answer 1

7

It might be this bug: https://debbugs.gnu.org/34341. It's fixed in Emacs 26.3+ and the workaround is:

(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")

Source

1
  • Thanks. Somehow I don't want to mess with TLS protocol settings, though :-( I reported this to Debian, if it turns out you were right I'll ACK.
    – q.undertow
    Commented May 13, 2020 at 5:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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