[求助] 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

也尝试了:

但是没有解决问题。

2 个赞

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

不会设置代理,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

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

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

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

2 个赞

是否试过这个

9 个赞

哈,感谢,真手舞足蹈。

➜  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...

遇到类似问题,感谢

刚成功,牛!

为什么我这里还是不行……真的好烦,macOS 永远安装不上 Doom。

fatal: unable to access 'https://github.com/melpa/melpa.git/: error:02FFF036:system library: func(4095):Connection reset by user

1 个赞

你错误不写着么,还是连的 github.com 然后没连成功

已经用了这行命令了:git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/.gitconfig 里也有这行,但是 ~/.emacs/bin/doom sync 的时候还是不行,errorno 60。

这个代理已经死掉了

寻着大家指的路,我去淘宝花 5 块钱也搞了一个加速的地址,使用 git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/,也是不行……

退款吧 这和你上面不是同一个地址吗

不是,我买的那个地址是另外一个。

你先用浏览器访问一下那个地址,看看通不通嘛

通的。我在想的是 git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/ 这个命令就是让 git fetch 东西的时候走这个而不是官方 github.com 是吗?