自制软件安装错误 期间失败:git 获取源主:引用/远程/源/主 --标签 --force



我无法安装自制软件。

我尝试过的方法:

  1. 更改http_proxy值"导出http_proxy=http://127.0.0.1:10818;导出https_proxy=http://127.0.0.1:10818;
  2. 提高后缓冲区值git config --global http.postBuffer 5242880000
  3. 使用ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"而不是/usr/bin/ruby -e "$(curl -fsSL...更改脚本 它奏效了。谁能解释为什么它有效?谢谢

终端不断显示此消息

==> Downloading and installing Homebrew...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (16/16), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

我为此搞砸了几个小时,并在这里和其他一些网站上尝试了所有提到的修复程序。

这是一个打开VPN的简单案例

我遇到了同样的问题,我认为我们有同样的问题,当我安装自制软件/核心时它总是中断:

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno
54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal:
index-pack failed Failed during: git fetch --force origin
refs/heads/master:refs/remotes/origin/master

我使用这些资源来解决问题 自制软件安装:期间失败:git fetch origin master:refs/remotes/origin/master -n --depth=1

https://www.programmersought.com/article/74365494100/

我的步骤:

  1. 我删除了与Homebrew相关的所有文件夹,您可以在安装运行时找到它们: (放入脚本并运行,因为您可能需要做不止一次,就像我一样:/( ==> 此脚本将安装:

    /usr/local/bin/brew/usr/local/share/doc/homebrew/usr/local/share/man/man1/brew.1/usr/local/share/zsh/site-functions/_brew/usr/local/etc/bash_completion.d/brew/usr/local/Homebrew

  2. 我确保所有网络连接正常,我可以ping github.com

  3. 我确保我的电子邮件已分配给 github 上的帐户

    git config --global user.email yourgitemail@example.com

  4. 正如您确实增加了后缓冲区值一样

    git config --global http.postBuffer 5242880000

  5. 修改 SSL 传输的安全设置

    git config --global http.sslVerify "false">

然后一切都工作并开始下载良好。我没有打破,但这花了很长时间...我记得离开我的MacBook Pro并在很长一段时间后回来,它仍在转移...我希望我能够提供帮助。

我花了一整天的时间来解决它,但如果您需要更多帮助,这两个链接包含所有详细信息。

在 ubuntu 20.04 中, 转到文件菜单,选择"其他位置",选择"计算机",选择"主页"文件夹。 右键单击并"在终端中打开"。

输入"sudo rm -RF Linuxbrew"。 再次尝试安装。 如果错误仍然弹出, 输入"git config --global user.email '

最新更新