`
kanpiaoxue
  • 浏览: 1750037 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

如何解决类似 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connec

阅读更多

 

参考资料:https://github.com/hawtim/blog/issues/10

 

 

今天发现安装 homeBrew 发现报错如下:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

Failed to fetch Homebrew .gitignore!

 

网上搜索了一下,发现是 github 的一些域名的 DNS 解析被污染,导致DNS 解析过程无法通过域名取得正确的IP地址。

打开 https://www.ipaddress.com/ 输入访问不了的域名,得到IP地址,然后改一下本地host,把无法访问的域名代理一下,就可以了。

 

分享到:
评论

相关推荐

    mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:

    开始一直报错Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7, 尝试过改动git config的代理,没有用, 换中科大的源,也没有用 最后解决办法如下,重装command line...

    brew_install.rb

    解决curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out错误

    Homebrew安装与配置(macOS)

    你知道Homebrew吗?它是macOS和Linux上的一个绝佳的终端软件包管理程序。与Linux上的apt-get、yum等相同,它拥有丰富的功能,能实现“即输即装”。只需一行命令“brew install xxx”,它就会自动给你安装上了!...

    tldr-parse-server:用于在Ubuntu上设置Parse Server和仪表板的TLDR

    您可以使用以下命令: curl https://raw.githubusercontent.com/at0dd/tldr-parse-server/master/install.sh > install.sh 使用特定于所需信息的信息编辑install.sh。 向install.sh添加执行权限 以sudo的身份运行...

    orthanc ThirdPartyDownloads:curl-7.64.0.tar.gz

    orthanc ThirdPartyDownloads:curl-7.64.0.tar.gz

    详解如何解决docker容器无法通过IP访问宿主机问题

    curl: (7) Failed to connect to 172.17.0.1 port 80: No route to host 查找问题原因 可以确定的是容器与宿主机是有网络连接的, 因为可以在容器内部通过 172.17.0.1 Ping 通宿主机: root@930d07576eef:/# ping ...

    error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    git首次提交代码到远程仓库提示413错误,...Delta compression using up to 4 threads Compressing objects: 100% (133/133), done. error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Req

    libpng-1.6.18.tar.xz

    curl: (22) The requested URL returned error: ...Error: Failed to download resource "libpng" Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz 解决下载失败问题

    gem_survey:宝石调查脚本

    宝石调查嗨,我想获得一些关于 gem 安装的统计数据,以便我可以更...快速开始这样做一次: $ curl https://raw.githubusercontent.com/tenderlove/gem_survey/master/survey.rb | ruby然后在每个项目中这样做: $ curl ...

    metasploitable3.7z

    curl -O https://raw.githubusercontent.com/rapid7/metasploitable3/master/Vagrantfile && vagrant up ``` Windows users: ``` mkdir metasploitable3-workspace cd metasploitable3-workspace Invoke-...

    dotfiles:cyplo的dotfiles-https:git.sr.ht〜cyplodotfiles的镜像

    [livecd] curl https://raw.githubusercontent.com/cyplo/dotfiles/master/nixos/bootstrap-livecd.sh | bash curl https://raw.githubusercontent.com/cyplo/dotfiles/master/nixos/bootstrap-livecd.sh | bash或...

    tuya-panel-cli:适用于Tuya Panel Developer的CLI

    curl -fsSL https://raw.githubusercontent.com/tuya/tuya-panel-cli/main/install.sh | sh 使用PowerShell: iwr https://raw.githubusercontent.com/tuya/tuya-panel-cli/main/install.ps1 -useb | iex 安装特定...

    MacOS 安装、卸载Homebrew

    /usr/bin/ruby -e $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) 3. 安装过程生成的代码 只是想记录一下,安装成功都会出现这些的 lorraine@192 ~ % /usr/bin/ruby -e $(curl ...

    DietPi-Website:DietPi OS网站的存储库

    部署说明部署到/tmp/DietPi-Website-master (无输入参数): bash -c "$(curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi-Website/master/deploy.bash)" 部署到/var/www (目标路径作为输入参数$ 1...

    开发设置:存储我的开发设置

    curl -O https://raw.githubusercontent.com/antonmarin/dev-settings/master/Taskfile.yml curl -O https://raw.githubusercontent.com/antonmarin/dev-settings/master/Makefile curl -O ...

    speedtest-installer:通过bash脚本轻松安装Speedtest CLI

    speedtest-安装程序通过bash脚本轻松安装Speedtest CLI安装对于MacOS brew install curl curl https://raw.githubusercontent.com/YajTPG/speedtest-installer/main/install.sh | sh对于Ubuntu / Debian apt-get ...

    容器漏洞分析服务Clair.zip

    Clair 是一个容器漏洞分析服务。它提供一个能威胁容器漏洞的列表,并且在有新的容器漏洞发布出来后会发送通知给用户。 标签:Clair

    Android代码-Terminal Watcher

    Terminal Watcher Terminal Watcher is an android app and desktop client that combine to send...curl -L "https://raw.githubusercontent.com/rcoh/terminal-watcher/master/installer.sh" | bash Then install the

Global site tag (gtag.js) - Google Analytics