0

TL;DR:除了一个特定的二进制文件(在本例中为 elm)外,所有与网络相关的东西都运行良好。

我正在运行一台新的拱形机器 - 我通过 wifi 连接并且可以访问网络。
但是 - 榆树似乎并不知道这一点。elm make尝试下载依赖项时运行失败。(这是从其他地方导入的项目)。

I could not connect to https://package.elm-lang.org to get the latest list of
packages, and I was unable to verify your dependencies with the information I
have cached locally.

Are you able to connect to the internet? These dependencies may work once you
get access to the registry!

将 package.elm-lang.org 的 IP 添加到 /etc/hosts 可以解决此问题,但随后会为 github.com 引发类似的错误。我可以继续这样做,但肯定有办法说服 elm 访问互联网。

我没有使用代理或类似的东西。我的连接显然有效并且看起来很稳定。elm init由于同样的原因也失败了,所以我无法在一个全新的目录上进行测试。

谢谢大家的帮助 :)

4

1 回答 1

3

显然,新鲜的 arch 使用systemd-resolvedDNS 的守护进程,但 elm 决定resolv.conf直接读取(空白),然后默认127.0.0.1为 DNS 服务器。

手动设置 DNS 服务器就可以resolv.conf了。

于 2021-06-07T20:13:08.633 回答