使用Git的Brew更新错误

使用Git的Brew更新错误,git,homebrew,Git,Homebrew,我在运行rvm use ruby--install--default和brew update时遇到了一个问题。看来后一期是我看到第一期的原因 下面是rvm使用ruby--install--default的错误: ruby-2.1.2 is not installed - installing. Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/osx

我在运行
rvm use ruby--install--default
brew update
时遇到了一个问题。看来后一期是我看到第一期的原因

下面是
rvm使用ruby--install--default的错误:

ruby-2.1.2 is not installed - installing.
Searching for binary rubies, this might take some time.

Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system......
Error running 'requirements_osx_brew_update_system ruby-2.1.2',
showing last 15 lines of /Users/connorphillips/.rvm/log/1408816616_ruby-2.1.2/update_system.log
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'Failed to update Homebrew, follow instructions here:
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
    https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
++ return 1
Requirements installation failed with status: 1.
Gemset '' does not exist, 'rvm ruby-2.1.2 do rvm gemset create ' first, or append '--create'.
然后我尝试
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

问题的根源是什么/修复它。

我有一个类似的问题,但能够解决它。每次尝试运行brew update时,都会出现以下错误:

致命:无法访问“”:无法解析主机:github.com
错误:执行时失败:git pull--quiet origin refs/heads/master:refs/remotes/origin/master


我的问题是,我使用的是VPN,但在关闭VPN后,它对我起了作用。

这可能是Git的问题。请尝试在终端上执行此操作:

git config --global --unset http.proxy 

git config --global --unset https.proxy 

然后重新启动终端或打开新的终端。然后再次尝试brew更新。

您是使用VPN还是其他方式?您无法连接到github,因为您的计算机找不到它。可能需要配置代理设置@亩無 无法解析主机证书和ssl证书之间存在差异。这意味着它无法访问位于的github.comall@cphill如果您在代理后面,请检查是否可以在命令行上运行
traceroute github.com
并发布输出?@Brennan不在VPN上,当我推送项目时,git正在工作。不知道为什么现在要拉东西会有问题