同事的 Macbook 拒绝从终端建立任何远程连接。例如:
macbook-pro% rvm install "ruby-3.2.2" /.../API/FAIRsharing-API 13:18
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/13.4/x86_64/ruby-3.2.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Warning: formula.jws.json: update failed, falling back to cached version.
==> Downloading https://formulae.brew.sh/api/cask.jws.json
curl: (6) Could not resolve host: formulae.brew.sh # # #
Warning: cask.jws.json: update failed, falling back to cached version.
==> Upgrading 2 outdated packages:
coreutils 9.1 -> 9.3
[email protected] 1.1.1s -> 1.1.1t
==> Fetching [email protected]
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1t
Error: [email protected]: Failed to download resource "[email protected]_bottle_manifest"
Failure while executing; `/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.22\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 13.4\)\ curl/7.88.1 --header Accept-Language:\ en --retry 3 --header Accept:\ application/vnd.oci.image.index.v1\+json --header Authorization:\ Bearer\ QQ== --fail --location --silent --head https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1t` exited with 6. Here's the output:
curl: (6) Could not resolve host: ghcr.io
curl: (6) Could not resolve host: ghcr.io
curl: (6) Could not resolve host: ghcr.io
curl: (6) Could not resolve host: ghcr.io
==> Fetching coreutils
==> Downloading https://ghcr.io/v2/homebrew/core/coreutils/manifests/9.3
Error: coreutils: Failed to download resource "coreutils_bottle_manifest"
Failure while executing; `/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.0.22\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 13.4\)\ curl/7.88.1 --header Accept-Language:\ en --retry 3 --header Accept:\ application/vnd.oci.image.index.v1\+json --header Authorization:\ Bearer\ QQ== --fail --location --silent --head https://ghcr.io/v2/homebrew/core/coreutils/manifests/9.3` exited with 35. Here's the output:
curl: (35) Recv failure: Socket is not connected
Requirements installation failed with status: 1.
他没有启用任何网络代理。此问题目前出现在标准家庭宽带连接上。没有启用 VPN,启用 Cisco VPN 也无济于事。
在此 Mac 上使用网络浏览器没有问题;它们能够连接。
当然,它已经重新启动,并已遵循当地 IT 部门的以下指示:
如果您在 Mac 上遇到连接问题,则可能是计算机的网络堆栈损坏,需要重新创建。这可能会同时影响有线和无线网络。我们使用的说明如下,供您参考,但如果您愿意,IT 部门也可以与您一起完成此操作。
在 Finder/Terminal 中转到此位置(确保它是系统库而不是用户配置文件库)/Library/Preferences/SystemConfiguration/ 删除该文件夹中名为以下内容或具有类似名称(如 .backup 或 pre-upgrade)的任何文件。com.apple.airport.preferences.plist com.apple.network.identification.plist com.apple.wifi.message-tracer.plist NetworkInterfaces.plist preference.plist 重新启动计算机 尝试再次连接到网络。如果失败,请尝试以下操作:
删除“系统偏好设置”->“配置文件”下的所有网络配置文件。删除您尝试连接的记住的网络。检查“网络偏好设置”中是否有任何其他选项出现意外的绿灯(例如,当您未连接到任何网络时,Cisco VPN 为绿色并显示已连接),然后卸载具有这些选项的应用程序(而不仅仅是从“网络偏好设置”中删除它们)。
第三方终端应用程序也出现了同样的问题。有人能建议下一步该怎么做吗?