无法下载melpa存档

时间:2016-04-30 04:48:15

标签: emacs melpa

我正在使用emacs 24.5,我正在尝试将melpa存档添加到emacs到我的包存档。当我尝试M-x list-packages时,我无法下载melpa存档,并且没有出现melpa repo的软件包列表。这是我在尝试M-x toggle-debug-on-error

时得到的
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)

和我的.emacs文件

(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.
 )

4 个答案:

答案 0 :(得分:1)

我找到问题的确切位置...在emacs中下载melpa列表(emacs必须访问互联网)所以你必须包含库文件才能做到这一点...下载 gnutls-3.3.11 -w32-bin 从这里https://sourceforge.net/projects/ezwinports/files/ ...解压缩下载的文件...并将.dll文件放在emacs文件夹中的bin文件中... 希望你对我的小帮助感到高兴:)

答案 1 :(得分:0)

我有这个问题。这可能是一个$ PATH问题。

答案 2 :(得分:0)

我在Win7上有类似的问题,来自stackexchange的this回答帮助了我。 简而言之,您必须从here下载已编译的Windows GnuTLS库和依赖项,并将其解压缩到emacs文件夹。如果您使用emacs-25-i686-deps.zip Windows,请获取32-bit,如果您使用emacs-25-x86_64-deps.zip,则获取64-bit

答案 3 :(得分:0)

对我来说,由于我使用的是64位Emacs 25.2,因此我必须从此处下载arr = ["5b608c0769698c3990c64ef4"] 文件:

https://ftp.gnu.org/gnu/emacs/windows/emacs-25/