I've installed emacs on a new machine (macos) brew cask install emacs
. My init.el file gets stuck installing cider (clojure ide) because it requires "spinner". When I do: M-x package-refresh-contents
, I get the message "Failed to download 'gnu' archive"
which leads me to believe elpa may be down, however, the elpa website itself does not appear to be down. If I try to manually install the package, the specific message is something to do with a "bad request".
I've tried to manually install the spinner.el file just to unblock myself, but that didn't seem to work. So the question is in two parts:
- How can I dig further into the issue, see if elpa is working, and debug the problem?
- How can I unblock myself? Does package installation of CIDER not check if "spinner" is already installed?
M-x eww https://elpa.gnu.org/
work? If not, maybe it's a HTTPS issue. If so, you can switch to HTTP by changingpackage-archives
as a workaround, though you're suggested to figure out why HTTPS failed then fix it if you can. You can install spinner manually withM-x package-install-from-buffer
, but you are going to need gnu elpa anyway in the future.(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
might work around it without disabling HTTPS completely.M-x package-install-from-buffer
worked for me working around it. I will report back on the HTTPS when I have time to investigate.