设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 3943|回复: 0

github报错* error setting certificate verify locations: 错误设置证书验证位置的解决方法

[复制链接]
 成长值: 336

签到天数: 4737 天

[LV.Master]伴坛终老

发表于 2016/6/10 16:05 | 显示全部楼层 |阅读模式 |Google Chrome 51.0.2704.84|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
2016-06-10 15:59:01.4506|INFO|thread: 1|DashboardViewModel|Received request to clone: 'https://github.com/1265578519/mirrors.git'
2016-06-10 15:59:03.8301|INFO|thread: 1|RepositoryModel|Cloning repo https://github.com/1265578519/mirrors.git
2016-06-10 15:59:03.8301|INFO|thread: 1|GitLfsSmudgeTail|Setting Git LFS smudge progress environment variable
2016-06-10 15:59:03.8301|INFO|thread: 1|RepositoryModel|Cloning 'https://github.com/1265578519/mirrors.git' to 'mirrors' in directory 'C:\Users\梦梦\Documents\GitHub
2016-06-10 15:59:03.8451|INFO|thread: 1|GitEnvironment|Process set up with this SSH Agent info: 117152:/tmp/ssh-s4Udb1GcvHAt/agent.114824
2016-06-10 15:59:03.8451|INFO|thread: 1|GitEnvironment|PATH is C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd;C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\usr\bin;C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\usr\share\git-tfs;E:\新建文件夹\GitHub V3.1.1.4 完整绿色版 离线安装包\GitHub;C:\Users\梦梦\AppData\Local\GitHub\lfs-amd64_1.2.0;C:\Windows\System32;C:\Windows\Microsoft.NET\Framework\v4.0.30319\;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
2016-06-10 15:59:03.8451|INFO|thread: 1|ProcessWrapper|Starting: Process - FileName: 'C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\cmd\git.exe', Args: 'clone --progress --recursive  --  "https://github.com/1265578519/mirrors.git" "mirrors" ', Working Directory: C:\Users\梦梦\Documents\GitHub
2016-06-10 15:59:03.8541|INFO|thread:19|DashboardViewModel|Selected repository '1265578519/mirrors'
2016-06-10 15:59:03.9292|INFO|thread:19|DashboardViewModel|Took 0ms to Create RepositoryViewModel for location C:\Users\梦梦\Documents\GitHub\mirrors
2016-06-10 15:59:04.2995|INFO|thread:26|GitLfsSmudgeTail|Cleaning up Git LFS smudge progress environment variable
2016-06-10 15:59:04.2995|WARN|thread: 1|StandardUserErrors|Showing user error Please check your log file for more details, or contact out support team if you are still having problems.
GitHub.IO.ProcessException: 15:59:03.910189 git.c:351               trace: built-in: git 'clone' '--progress' '--recursive' '--' 'https://github.com/1265578519/mirrors.git' 'mirrors'
15:59:03.956233 run-command.c:336       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/1265578519/mirrors.git'
Cloning into 'mirrors'...
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying 192.30.252.122...
* Connected to github.com (192.30.252.122) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* error setting certificate verify locations:
  CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt
  CApath: none
* Closing connection 0
fatal: unable to access 'https://github.com/1265578519/mirrors.git/': error setting certificate verify locations:
  CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt
  CApath: none
2016-06-10 15:59:04.3225|ERROR|thread: 1|WebBrowserExtensions|Unable to resolve PresentationSource for browser
2016-06-10 15:59:04.3736|ERROR|thread:11|ComparisonGraph|JavaScript Alert from the comparison graph: http://github-app/: TypeError: Cannot read property 'selectCommit' of null
2016-06-10 15:59:04.9085|INFO|thread:44|BackgroundFetcher|Got a refresh period for 1265578519/mirrors of 300 seconds


根据日志,看到错误是* error setting certificate verify locations: ,翻译后就是错误设置证书验证位置
上面日志说明,文件路径是CAfile: C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32/usr/ssl/certs/ca-bundle.crt

然后我们进入C:\Users\梦梦\AppData\Local\GitHub\PortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0\mingw32\发现并没有usr文件夹,我们手动创建个usr,然后把ssl文件夹复制一份到usr即可解决

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/12/23 12:37 , Processed in 0.150514 second(s), 24 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表