VPN 中断 brew update 和 ping
VPN breaks brew update and ping
我正在尝试 运行 brew update 并收到以下错误:
brew update
fatal: unable to access 'https://github.com/Homebrew/homebrew.git/': Could not resolve host: github.com
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
我的 DNS 解析好像出了问题:
ping github.com
ping: cannot resolve github.com: Unknown host
ping google.com
ping: cannot resolve google.com: Unknown host
尽管通过 IP ping google public DNS 有效:
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=59 time=14.748 ms
我可以通过浏览器正常访问 google 和 github。当我升级到 OS X El Capitan 测试版时,我认为我的 DNS 的某些配置发生了变化。我不熟悉它的工作原理,因此非常感谢您的帮助!
更新:
看起来问题是由使用我的 VPN(私有互联网访问)引起的。关于为什么会破坏 'ping' 的任何想法?
Beta 4 将我的 DNS 设置更改为一些奇怪的地址,但无法连接。必须摆脱 Norton Internet Security 并将 DNS 改回 Google Public DNS (https://developers.google.com/speed/public-dns/docs/using)。要更改 DNS,请转至系统偏好设置 > 网络 > 以太网 > 高级 > DNS。您必须点击列表底部的减号以删除旧的,然后一个接一个地添加新的,首先从 IP V4 开始。
不确定这是否是您的问题,但使用 Google public DNS 将有助于清除 DNS 问题,以便您消除它们。
原来这是私人互联网访问的问题。他们有一个更新的版本可以解决这个问题。以下是他们的指示,以防其他人遇到同样的问题:
There was a known conflict between our application and MacOS 10.11 (El
Capitan), resulting in the client being unable to function correctly.
We have recently released version 49 of the Mac OSX client to deal
with this issue. Please remove the current installation of the PIA
client software, and install v.49 from our website:
- Go into your Applications folder, and drag Private Internet Access.app to the Trashbin. Empty the Trashbin after doing this.
- Open Terminal
- NOTE Please make sure this step is completed very carefully. All symbols, and spacing are VERY important. Incorrect usage of this
command can lead to Data loss. (It is best to simply copy and paste
the command below) Type: rm -rf ~/.pia_manager/
- Press enter. If the command is successful, there will be no confirmation, it will simply go to a new line in the Terminal window.
Please make sure to complete step 3 very carefully.
Next, power off your computer, wait 60 seconds and turn it back on.
After this, please download a fresh copy from our website
(https://www.privateinternetaccess.com/pages/client-support/), and
give the install another try.
我正在尝试 运行 brew update 并收到以下错误:
brew update
fatal: unable to access 'https://github.com/Homebrew/homebrew.git/': Could not resolve host: github.com
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
我的 DNS 解析好像出了问题:
ping github.com
ping: cannot resolve github.com: Unknown host
ping google.com
ping: cannot resolve google.com: Unknown host
尽管通过 IP ping google public DNS 有效:
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=59 time=14.748 ms
我可以通过浏览器正常访问 google 和 github。当我升级到 OS X El Capitan 测试版时,我认为我的 DNS 的某些配置发生了变化。我不熟悉它的工作原理,因此非常感谢您的帮助!
更新: 看起来问题是由使用我的 VPN(私有互联网访问)引起的。关于为什么会破坏 'ping' 的任何想法?
Beta 4 将我的 DNS 设置更改为一些奇怪的地址,但无法连接。必须摆脱 Norton Internet Security 并将 DNS 改回 Google Public DNS (https://developers.google.com/speed/public-dns/docs/using)。要更改 DNS,请转至系统偏好设置 > 网络 > 以太网 > 高级 > DNS。您必须点击列表底部的减号以删除旧的,然后一个接一个地添加新的,首先从 IP V4 开始。
不确定这是否是您的问题,但使用 Google public DNS 将有助于清除 DNS 问题,以便您消除它们。
原来这是私人互联网访问的问题。他们有一个更新的版本可以解决这个问题。以下是他们的指示,以防其他人遇到同样的问题:
There was a known conflict between our application and MacOS 10.11 (El Capitan), resulting in the client being unable to function correctly. We have recently released version 49 of the Mac OSX client to deal with this issue. Please remove the current installation of the PIA client software, and install v.49 from our website:
- Go into your Applications folder, and drag Private Internet Access.app to the Trashbin. Empty the Trashbin after doing this.
- Open Terminal
- NOTE Please make sure this step is completed very carefully. All symbols, and spacing are VERY important. Incorrect usage of this command can lead to Data loss. (It is best to simply copy and paste the command below) Type: rm -rf ~/.pia_manager/
- Press enter. If the command is successful, there will be no confirmation, it will simply go to a new line in the Terminal window.
Please make sure to complete step 3 very carefully.
Next, power off your computer, wait 60 seconds and turn it back on. After this, please download a fresh copy from our website (https://www.privateinternetaccess.com/pages/client-support/), and give the install another try.