簡體   English   中英

Emacs 24.5前奏卡在聯系主機melpa.org上

[英]Emacs 24.5 with prelude stuck on contacting host melpa.org

我正在運行通過自制軟件安裝的emacs 24.5。 由於某些奇怪的原因,我的emacs卡在了聯系主機上:melpa.org:80

我什至嘗試了全新的emacs安裝(也刪除了.emacs.d文件夾)。我還可以通過終端ping網址melpa.org。

有想法該怎么解決這個嗎。

您可以嘗試切換到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))

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM