Git报错处置处罚

[复制链接]
发表于 2026-2-13 23:16:09 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
目次
clone报错:x509: certificate signed by unknown authority
lfs报错:Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository
Failed to connect to xxx.xxx.com port 8080: No route to host


clone报错:x509: certificate signed by unknown authority

  1. Error downloading object: model-00001-of-00008.safetensors (ed3ac49): Smudge error: Error downloading model-00001-of-00008.safetensors (ed3ac4983f682a999b0e4b6f072aad294c4fd9a7e968e90835ba5c4b466d3c7c): LFS: Get https://cdn-lfs.huggingface.co/repos/XXX: x509: certificate signed by unknown authority
  2. Errors logged to Qwen-7B-Chat/.git/lfs/objects/logs/20231220T074511.758960773.log
  3. Use `git lfs logs last` to view the log.
  4. error: external filter 'git-lfs filter-process' failed
  5. fatal: model-00001-of-00008.safetensors: smudge filter lfs failed
复制代码
办理:

  1. GIT_SSL_NO_VERIFY=1 git clone https://huggingface.co/Qwen/Qwen-7B-Chat
复制代码
注:大文件大概必要下载几个小时,不绝不体现大文件的进度是正常的

lfs报错:Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository

  1. Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any of the parent directories): .git\n"
  2. Git LFS initialized.
复制代码
办理:

  1. git init
  2. git lfs install
复制代码

Failed to connect to xxx.xxx.com port 8080: No route to host

  1. Cloning into 'Qwen1.5-14B-Chat'...
  2. fatal: unable to access 'https://huggingface.co/Qwen/Qwen1.5-14B-Chat/': Failed to connect to xxx.xxx.com port 8080: No route to host
复制代码
办理:

大概是路由设置有误,假如存在某个路由导致目标IP指向错误的网关,删除该网关路由。
  1. route
  2. route del -net 172.18.0.0/16
复制代码
详见:Conda报错办理:ProxyError: Conda cannot proceed due to an error in your proxy configuration.-CSDN博客

参考资料:
https://stackoverflow.com/questions/60349972/git-lfs-give-x509-certificate-signed-by-unknown-authority
ubuntu20.04 安装 Git LFS - 知乎

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!qidao123.com:ToB企服之家,中国第一个企服评测及软件市场,开放入驻,技术点评得现金
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表