【发布时间】:2022-01-26 00:58:00
【问题描述】:
我正在尝试在集群上的 Linux 上安装 Homebrew。但我不断收到以下错误消息:
fatal: packfile .git/objects/pack/pack-9d2d97f367d3ebfa65a3b708b2d87333a8eb2bf0.pack cannot be mapped: Cannot allocate memory
error: https://github.com/Homebrew/homebrew-core did not send all necessary objects
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
然后我使用git init 命令在.linuxbrew 文件夹上创建了一个.git 存储库。
你能告诉我如何解决这个问题吗?
谢谢。
【问题讨论】:
-
gist.github.com/Zelnox/210419 — 也许可以将 repo 作为存档提取?
-
如何运行这个脚本?喜欢 bash "script.rb" 吗?
-
如果是 +x,只需
./script.rb就足够了。它使用 Ruby,根据 shebang 行,所以ruby script.rb也应该可以工作。 YMMV。确保首先阅读互联网脚本的内容:) -
感谢您的提醒。如我所见,它写成
/usr/local/。所以我得把它改成/blah/blah/blah/.linuxbrew,对吧?
标签: linux git error-handling homebrew homebrew-cask