我正在运行通过自制程序安装的emacs 24.5。 由于一些奇怪的原因,我的emacs被卡在联系主持人:melpa.org:80
我甚至尝试过全新安装的emacs(也删除了.emacs.d文件夹) 我也可以通过终端ping url melpa.org。
有关如何解决此问题的任何想法。
答案 0 :(得分:0)
您可以尝试切换到HTTPS吗?我有
(setq package-archives '(("org" . "http://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
;; from https://glyph.twistedmatrix.com/2015/11/editor-malware.html
;; needs "brew install gnutls" and "pip install certifi", perhaps with sudo
(let ((trustfile
(replace-regexp-in-string
"\\\\" "/"
(replace-regexp-in-string
"\n" ""
(shell-command-to-string "python -m certifi")))))
(setq tls-program
(list
(format "/usr/local/bin/gnutls-cli --insecure --x509cafile %s -p %%p %%h"
trustfile)))
(setq gnutls-verify-error t))