执行repo init或git clone时报错:protocol error: bad line length 或协议错误:错误的行长度

系统版本:Ubuntu20.04

repo version v2.47

repo launcher version 2.45

git version 2.25.1

报错信息

fatal: 协议错误:错误的行长度 948
fatal: 远端意外挂断了
repo: error: "git" failed with exit status 128
  cwd: /aosp/pvt1/yangbinbin/11/.repo/repo.tmp
  cmd: ['git', 'fetch', '--quiet', '--progress', 'origin', '+refs/heads/*:refs/remotes/origin/*', '+refs/tags/*:refs/tags/*']
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

排查思路及解决方案

1. 同样的命令换台机器正常,说明问题出现在这台机器上

2. 切换帐号,同样的命令也可以正常执行,说明问题出现

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部