安装 Spacemacs 报错

按照 Spacemacs Rocks 和 Spacemacs 的 README 都试过了
已经换源多次。

Warning (spacemacs): 
Error connection time out for melpa-cn repository!
Warning (spacemacs): 
Error connection time out for gnu-cn repository!
Warning (spacemacs): An error occurred while retrieving the theme, using default theme. (error: (error Package ‘spacemacs-theme-’ is unavailable))
Warning (initialization): An error occurred while loading ‘f:/spacemacs/.emacs.d/init.el’:

error: Package ‘package-build-’ is unavailable

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
Warning (spacemacs): 
Error connection time out for melpa-cn repository!
Warning (spacemacs): 
Error connection time out for gnu-cn repository!
Warning (spacemacs): An error occurred while retrieving the theme, using default theme. (error: (error Package ‘spacemacs-theme-’ is unavailable))
Warning (initialization): An error occurred while loading ‘f:/spacemacs/.emacs.d/init.el’:

error: Package ‘package-build-’ is unavailable

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
阅读 6.9k
3 个回答

问题已解决,还需要下载解压 emacs-25-i686-deps.zip 。。。。

(那以前emacs24是咋办的)

确保在 user-init() 中添加了:

  (setq configuration-layer--elpa-archives
      '(("melpa-cn" . "http://elpa.zilongshanren.com/melpa/")
        ("org-cn"   . "http://elpa.zilongshanren.com/org/")
        ("gnu-cn"   . "http://elpa.zilongshanren.com/gnu/")))

如果这样还报连接错误,那估计是你网络的问题,你试着浏览器访问这几个地址看看。如果有内网,再看下 spacemacs 中配置 proxy 的用法。

我没用子龙山人的 source,因为经常出问题,我用的清华的 source,又快又稳定,你可以试试:

  (setq-default
   configuration-layer--elpa-archives
   '(("melpa-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
     ("gnu-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
     ("org-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/org/")))

看你的反馈很明显是网络问题。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进