[求助] doom安装不了,连不上github如何解决??

中午手痒运行了 doom upgrade,然后各种报错;草率的删掉了 .emac.d 重装后,困在了这一步。

fatal: unable to access 'https://github.com/melpa/melpa.git/': Failed to connect to github.com port 443: Connection timed out

> Creating /mnt/c/Users/gaowei/Documents/primary.doom.d/
  ✓ Created /mnt/c/Users/gaowei/Documents/primary.doom.d/
! init.el already exists, skipping
! config.el already exists, skipping
! packages.el already exists, skipping
- Envvar file already exists, skipping
Installing plugins
> Installing packages...
  > Updating recipe repos...
    x There was an unexpected package error
      fatal: unable to access 'https://github.com/melpa/melpa.git/': Failed to connect to github.com port 443: Connection timed out
    ! Extended backtrace logged to .emacs.d/.local/doom.error.log

在doom的 init.el 头部配置了清华的源:

(setq package-archives '(("gnu"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
                         ("org-cn". "http://mirrors.tuna.tsinghua.edu.cn/elpa/org/")
                         ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))

看这个贴子,大概知道是straight.el的原因:

hosts的github配置写了一堆, dns也改了。

127.0.0.1       localhost
127.0.1.1       alpha.localdomain       alpha
52.74.223.119   github.com
52.74.223.119   gist.github.com
54.169.195.247  api.github.com
185.199.111.153 assets-cdn.github.com
199.232.96.133  raw.githubusercontent.com
199.232.96.133  gist.githubusercontent.com
199.232.96.133  cloud.githubusercontent.com
199.232.96.133  camo.githubusercontent.com
199.232.96.133  avatars0.githubusercontent.com
199.232.96.133  avatars1.githubusercontent.com
199.232.96.133  avatars2.githubusercontent.com
199.232.96.133  avatars3.githubusercontent.com
199.232.96.133  avatars4.githubusercontent.com
199.232.96.133  avatars5.githubusercontent.com
199.232.96.133  avatars6.githubusercontent.com
199.232.96.133  avatars7.githubusercontent.com
199.232.96.133  avatars8.githubusercontent.com
199.232.96.133  user-images.githubusercontent.com
185.199.109.154 github.githubassets.com

也尝试了:

但是没有解决问题。

之前看老哥各种写教程… 走代理试试呢

不会设置代理,vpn用的蓝灯,对终端无效,比如运行不了youtube-dl。

这… 这单纯属于网络问题了吧, 先想办法翻墙吧

没用过蓝灯, 我在终端里 export http_proxy 之类的就可以让终端走代理

1赞

感谢,

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy 'socks5://127.0.0.1:1080'

image

还是不行,先放着,等明天早上试试。

(个人的一点学习心得,不到万不得已,不学新东西;学到一点就用到极致,用到一百个地方,用到一千个地方)

不可遏制的想学新东西,不是高效的策略,也不是费力训练才能掌握的技能;而是自然本能,这种本能和焦虑养活了“得到”等知识服务。

是否试过这个

3赞

哈,感谢,真手舞足蹈。

➜  gaowei ~/.emacs.d/bin/doom install
WARNING (:tools flycheck) module was moved to (:checkers syntax)
Installing Doom Emacs!

> Creating /mnt/c/Users/gaowei/Documents/primary.doom.d/
  ✓ Created /mnt/c/Users/gaowei/Documents/primary.doom.d/
! init.el already exists, skipping
! config.el already exists, skipping
! packages.el already exists, skipping
Generate an envvar file? (see `doom help env` for details) (y or n) y
> Generating envvars file at "~/.emacs.d/.local/env"
  ✓ Successfully generated "~/.emacs.d/.local/env"
Installing plugins
> Installing packages...
  > Updating recipe repos...
  → Cloning auto-minor-mode...csmirror-mirror...
  → Cloning auto-minor-mode...done
  - Checked out auto-minor-mode: 17cfa1b54800fdef2975c0c0531dad34846a5065
  → Building auto-minor-mode...
  → Building auto-minor-mode...done
  → Cloning gcmh...