[spacemacs]git下载出错
https://github.com/syl20bnr/spacemacs
報錯如下:
lihaiyan@lihaiyan-sh:~/Downloads/spacemacs$ git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
Cloning into ‘/home/lihaiyan/.emacs.d’…
fatal: unable to access ‘https://github.com/syl20bnr/spacemacs/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.
同ping 不通該網站:
lihaiyan@lihaiyan-sh:/usr/bin$ ping github.com
PING github.com (13.250.177.223) 56(84) bytes of data.
^C
— github.com ping statistics —
56 packets transmitted, 0 received, 100% packet loss, time 56299ms
解決方法:
sudo vim /etc/hosts
在文件添加:
192.30.253.113 github.com
安裝步驟:
Default installationIf you have an existing Emacs configuration, back it up first:cd ~mv .emacs.d .emacs.d.bakmv .emacs .emacs.bakDon't forget to backup and remove ~/.emacs file otherwise Spacemacs WILL NOT load since that file prevents Emacs from loading the proper initialization file.Clone the repository:git clone https://github.com/syl20bnr/spacemacs ~/.emacs.dmaster is the stable branch and it is immutable, DO NOT make any modification to it or you will break the update mechanism. If you want to fork Spacemacs safely use the develop branch where you handle the update manually.(Optional) Install the Source Code Pro font.If you are running in terminal you'll also need to change font settings of your terminal.Launch Emacs. Spacemacs will automatically install the packages it requires. If you get an error regarding package downloads then you may try to disable the HTTPS protocol by starting Emacs withemacs --insecureOr you can set the dotspacemacs-elpa-https to nil in your dotfile to remove the need to start Emacs with --insecure argument. You may wish to clear out your .emacs.d/elpa directory before doing this, so that any corrupted packages you may have downloaded will be re-installed.Restart Emacs to complete the installation.If the mode-line turns red then be sure to consult the FAQ.總結
以上是生活随笔為你收集整理的[spacemacs]git下载出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 理工男,我感觉 win10 挺好用的,一
- 下一篇: 【论文阅读】Squeeze-and-At