Fork me on GitHub
#emacs
<
2020-02-16
>
tvirolai10:02:51

I’m having trouble getting Emacs to fetch packages. During startup, I get this:

Contacting host: 
Failed to download 'gnu' archive.
Package refresh done
Failed to download 'melpa' archive.
When starting the Emacs the --debug-init option, I get this:
Debugger entered--Lisp error: (file-error "make client process failed" "Permission denied" :name "" :buffer #<killed buffer> :host "" :service 443 :nowait nil :tls-parameters nil)
  signal(file-error ("make client process failed" "Permission denied" :name "" :buffer #<killed buffer> :host "" :service 443 :nowait nil :tls-parameters nil))
  package--download-one-archive(("gnu" . "") "archive-contents" nil)
  package--download-and-read-archives(nil)
  package-refresh-contents()
  (if (prelude-packages-installed-p) nil (message "%s" "Emacs Prelude is now refreshing its package database...") (package-refresh-contents) (message "%s" " done.") (prelude-require-packages prelude-packages))
  prelude-install-packages()
  eval-buffer(#<buffer  *load*-376635> nil "/Users/tuomo.virolainen/.emacs.d/core/prelude-packages.el" nil t)  ; Reading at buffer position 3589
  load-with-code-conversion("/Users/tuomo.virolainen/.emacs.d/core/prelude-packages.el" "/Users/tuomo.virolainen/.emacs.d/core/prelude-packages.el" nil t)
  require(prelude-packages)
  eval-buffer(#<buffer  *load*> nil "/Users/tuomo.virolainen/.emacs.d/init.el" nil t)  ; Reading at buffer position 4655
  load-with-code-conversion("/Users/tuomo.virolainen/.emacs.d/init.el" "/Users/tuomo.virolainen/.emacs.d/init.el" t t)
  load("/Users/tuomo.virolainen/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x400d1a6d>)()
  command-line()
  normal-top-level()
Any ideas where the issue might lie?

sogaiu11:02:03

are you able to connect to http://elpa.gnu.org using a web browser?

tvirolai11:02:17

Yes, the browser works

tvirolai11:02:31

And ping too

sogaiu11:02:05

i hesitate to suggest using http over https, but does anything change if you use http instead of https for the urls for packages?

sogaiu11:02:26

i take it that this is not a fresh installation or ugprade of emacs -- and that things worked not that long ago

tvirolai11:02:12

This is a fresh installation on a new machine. But a strange thing is that I already managed to get it working once, but after running into other issues I did a reinstall and now there’s this. Now I’ve tried installing different versions from different sources and different settings packages (like Prelude and Spacemacs, and a fresh init.el too) but nothing seems to help.

tvirolai11:02:44

Thanks, I’ll try that

tvirolai11:02:52

It seems that those install options are deprecated. But it might be related to my problem. I tried compiling Emacs from source, and the configure script gave the following error:

configure: error: The following required libraries were not found:
     gnutls
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-gnutls=no
as options to configure

tvirolai11:02:33

Although Homebrew says that gnutls is installed and up-to-date…

sogaiu11:02:50

hmm...i haven't used macos recently so i'm not sure what the recommendations are these days regarding emacs, but may be the following could help? https://emacsformacosx.com/

tvirolai12:02:34

Thanks, but doesn’t work either 😞 But I tried installing something called emacs-plus and that seems to work!

sogaiu12:02:52

ah, congratulations!

tvirolai12:02:18

Thanks for the help!

😉 4
practicalli-johnny14:02:40

@tvirolai there is an issue in Emacs 25 with certificates which maybe the cause. If you are not using Emacs 26.3 or higher, I suggest getting a newer version.