我正在运行通过自制软件安装的emacs 24.5。出于某种奇怪的原因,我的emacs无法联系主机: melpa.org:80
我甚至尝试了一个全新的emacs安装(也删除了.emacs.d文件夹),我还能通过终端连接到melpa.org地址。
任何关于如何解决这个问题的想法。
发布于 2017-01-03 22:20:48
您可以尝试切换到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))https://stackoverflow.com/questions/31232329
复制相似问题