我正在 ubuntu 18.0 桌面版上安装 odoo 16。我更新并升级了ubuntu。当我运行此命令时收到此错误消息:
sudo git clone https://www.github.com/odoo/odoo --depth 1 --branch=16.0 --single-branch
错误信息:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
我尝试使用以下命令增加默认的 1MB 的 postBuffer:
git config http.postBuffer 524288000DD
尝试通过 ssh 克隆 -
git clone [email protected]:odoo/odoo.git ...
。
为此,您需要拥有 ssh 密钥,您可以按照指南进行操作 - 生成新的 ssh 密钥
另一点可能有帮助的是,当你配置缓冲区大小时,使用
--global
,不确定它是否有帮助,但不会有什么坏处。
您可以尝试通过以下命令进行克隆, git clone --深度 1 --branch 16.0 https://www.github.com/odoo/odoo --single-branch