repo使用问题---出现404问题的解决方法

5 篇文章 0 订阅
4 篇文章 5 订阅

repo出现404的解决方法

原因

出现404,主要时在使用repo时,需要预下载部分repo工具的相关插件,所以一般在设置repo工具时,我们会将repo中
预下载的部分从官网上拉取下来,放在自己的仓库中,以便增加下载速度,但是这个仓库可能会发生改变,这时本地的
repo在使用时就会报错

报错现象

repo init -u git@code.xxx.com.cn:j3/manifest.git -m manifest_j3.xml
Downloading Repo source from git@code.xxx.com.cn:VehicleServer2/repo-git.git
Access deined: 404 Not Found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
repo: error: “git” failed with exit status 128
cwd: /media/C/XA/test/.repo/repo
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’

解决方法

找到repo安装工具
例如:我的repo安装在~/.bin/repo下
1、打开
vim ~/.bin/repo
2、修改
REPO_URL = os.environ.get(‘REPO_URL’, None)
if not REPO_URL:
REPO_URL = ‘git@xxx.xxx.com.cn:opensource/repo-git.git’ //修复位置和内容
REPO_REV = os.environ.get(‘REPO_REV’)
if not REPO_REV:
REPO_REV = ‘stable’

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值