Have started seeing this error after I installed a new version of Emacs. My package code in init file is
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")))
(package-initialize)
This also fails if I use https. What do I need to do to fix this?
package-list-packages
gives a bunch of stale links in Emacs, but if I go to Melpa directly in my browser I am able to download the tar files with the correct dates on the links.emacs -Q
and running your code exactly, I can get package-list-packages to work fine. What version of Emacs are your running? Do you have any other config in your init file? If you do, can you try running just the code you have here? Maybe there's something else in your init that's interacting.