MELPA no longer updates after no changes of mine. With a minimal .emacs of

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))

the command M-x package-list-packages (pa-l-) fails with

error in process sentinel: End of file during parsing

The proxy is set from environment variables: url-proxy-services is

(("https" . "") ("http" . ""))

How is this fixed?

  • 1
    Set Options => Enter Debugger on Error and reproduce the problem. That will hopefully give you a backtrace that should help track down the origin of the problem. – Stefan May 9 '19 at 1:03
  • 2
    This is most likely a truncated archive-contents file. Try rm ~/.emacs.d/elpa/archives/melpa/archive-contents. – wasamasa May 9 '19 at 7:19
  • @wasamasa: also occurs on an empty .emacs.d – serv-inc May 13 '19 at 15:39

Your Answer

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

Browse other questions tagged or ask your own question.