中午手痒运行了 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
也尝试了:
但是没有解决问题。