1

Almost any time I try to use packages, they fail for one reason or another. I did manage to install a package some time last year (2020) but not since.

The marmalade-repo.org has had a bad certificate for years (expired 2017 I think) so I commented it out; my .emacs now says:

(require 'package)
(setq package-enable-at-startup nil)

(add-to-list 'package-archives
     '("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives
     '("melpa" . "https://melpa.org/packages/"))
;(add-to-list 'package-archives
;    '("marmalade" . "http://marmalade-repo.org/packages/"))

But any attempt at package-list-packages get the error:

Failed to download ‘melpa’ archive.
Failed to download ‘gnu’ archive.
Contacting host: elpa.gnu.org:80
Saving file /home/peter/.emacs.d/elpa/archives/gnu/archive-contents...
Wrote /home/peter/.emacs.d/elpa/archives/gnu/archive-contents
cond: Invalid version list ‘(8 6 -4)’

I'm obviously Doin' It Wrong™ but I don't understand where. Is there a way to make packages work again? Is there something I can do to help?

10
  • What version of emacs are you using? M-x emacs-version to find out. Commented Apr 26, 2021 at 12:36
  • GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian. This is what comes with Mint 20.1. But packages have been flaky for years, with broken certificates and sites going offline and packages disappearing and reappearing. Commented Apr 28, 2021 at 19:10
  • Well, 26.3 should work (the debian build of 26.1 certainly didn't). What does the backtrace look like if you do M-x toggle-debug-on-error and then fire package-list-packages? Commented Apr 29, 2021 at 21:47
  • Still experimenting. Packages work now (someone must have fixed the certificates) Commented May 5, 2021 at 14:30
  • Broken again: I'm getting the message "Invalid version list ‘(8 6 -4)’" when I use M-x list-packages RET Commented May 19, 2021 at 13:10

0

Your Answer

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

Browse other questions tagged or ask your own question.