2016-04-30 15 views
1

Ich benutze Emacs 24.5 und ich versuche das Melpa Archiv zu Emacs zu meinen Paketarchiven hinzuzufügen. wenn ich versuche, M-x list-packages bekomme ich konnte nicht herunterladen Melpa Archiv und die Liste der Pakete von Melpa Repo nicht angezeigt. hier ist das, was ich habe, wenn ich M-x toggle-debug-on-error versuchenkonnte das Melpa-Archiv nicht herunterladen

Debugger entered--Lisp error: (error "Could not create connection to melpa.org:443") 
signal(error ("Could not create connection to melpa.org:443")) 
error("Could not create connection to %s:%d" "melpa.org" 443) 
url-http([cl-struct-url "https" nil nil "melpa.org" nil "/packages/archive- contents" nil nil t nil t] #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(nil) (nil) url-debug retrieval "Synchronous fetching done (%S)" t] 5 "\n\n(fn &rest IGNORED)"] (nil)) 
url-https([cl-struct-url "https" nil nil "melpa.org" nil "/packages/archive- contents" nil nil t nil t] #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(nil) (nil) url-debug retrieval "Synchronous fetching done (%S)" t] 5 "\n\n(fn &rest IGNORED)"] (nil)) 
url-retrieve-internal("https://melpa.org/packages/archive-contents" #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(nil) (nil) url-debug retrieval "Synchronous fetching done (%S)" t] 5 "\n\n(fn &rest IGNORED)"] (nil) nil nil) 
url-retrieve("https://melpa.org/packages/archive-contents" #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(nil) (nil) url-debug retrieval "Synchronous fetching done (%S)" t] 5 "\n\n(fn &rest IGNORED)"] nil nil nil) 
url-retrieve-synchronously("https://melpa.org/packages/archive-contents") 
url-insert-file-contents("https://melpa.org/packages/archive-contents") 
package--download-one-archive(("melpa" . "https://melpa.org/packages/") "archive-contents") 
#[0 "\301\300\302\"\207" [("melpa" . "https://melpa.org/packages/") 
package--download-one-archive "archive-contents"] 3 "\n\n(fn)"]() 
funcall(#[0 "\301\300\302\"\207" [("melpa" . "https://melpa.org/packages/") package--download-one-archive "archive-contents"] 3 "\n\n(fn)"]) 
package-refresh-contents() 
list-packages(nil) 
call-interactively(list-packages record nil) 
command-execute(list-packages record) 
execute-extended-command(nil "list-packages") 
call-interactively(execute-extended-command nil nil) 
command-execute(execute-extended-command) 

und meine .emacs Datei

(custom-set-variables 
;; custom-set-variables was added by Custom. 
;; If you edit it by hand, you could mess it up, so be careful. 
;; Your init file should contain only one such instance. 
;; If there is more than one, they won't work right. 
'(package-archives 
(quote 
(("gnu" . "http://elpa.gnu.org/packages/") 
("melpa" . "https://melpa.org/packages/"))))) 
(custom-set-faces 
;; custom-set-faces was added by Custom. 
;; If you edit it by hand, you could mess it up, so be careful. 
;; Your init file should contain only one such instance. 
;; If there is more than one, they won't work right. 
) 
+0

Akzeptiert MELPA https? http funktioniert OK - hast du das versucht? – Drew

+0

ja, das https funktioniert auf meinem Rechner einwandfrei –

+0

Ich hatte die gleiche Erfahrung. Ich entfernte Melpa aus meiner Liste der Paketarchive und fuhr wie gewöhnlich fort. Am nächsten Tag legte ich es zurück und es hat funktioniert. Kein Kommentar zu der Underling Ursache. –

Antwort

1

ich habe genau das gefunden, wo das Problem ist ... die Melpa Liste in Emacs zum Download (Emacs muss der Zugriff auf Internet) so müssen Sie die Bibliothek Dateien, um das zu tun ... herunterladen gnutls-3.3.11-w32-bin von hier https://sourceforge.net/projects/ezwinports/files/ ... extrahieren Sie die heruntergeladene Datei ... und legen Sie die .dll Dateien in bin Datei in Emacs Ordner ... h ope, du bist glücklich mit meiner kleinen Hilfe :)

+1

Ein ähnlicher Fehler ("fail to download 'melpa' archive") wurde gelöst, indem die neueste Version von gnutls-bin (3.4.10-4ubuntu1.1) über Synaptic installiert wurde. Vielen Dank! – Katarina

0

Ich hatte dieses Problem. Es könnte ein $ PATH-Problem sein.

0

Ich hatte das ähnliche Problem auf Win7 und this Antwort von Stackexchange half mir. Kurz gesagt müssen Sie kompilierte Windows GnuTLS-Bibliotheken und Abhängigkeiten von here herunterladen und in den Emacs-Ordner entpacken. Get emacs-25-i686-deps.zip, wenn Sie 32-bit Windows verwenden und emacs-25-x86_64-deps.zip verwenden, wenn Sie 64-bit verwenden.