在公司用emacs,想安装melpa,init.el的设置是这样的
; Set up melpa package repository
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("gnu" . "http://elpa.zilongshanren.com/gnu/")
("melpa" . "http://mirrors.bfsu.edu.cn/elpa/melpa/")))
(package-initialize) ;; You might already have this line
换了好几个镜像都不行,输入 package-refresh-contents 就是下面的错误
Debugger entered--Lisp error: (error "elpa.zilongshanren.com/80 getaddrinfo error 11001")
Contacting host: elpa.zilongshanren.com:80
Failed to download ‘gnu’ archive.
Contacting host: mirrors.bfsu.edu.cn:80
Package refresh done
Failed to download ‘melpa’ archive.
不知道是不是公司把端口关了还是别的问题,但是用浏览器能正常上这些网
--
修改:kaishui588 FROM 111.33.144.*
FROM 111.33.144.*