git clone失败无错误信息或报penSSL/3.1.1: error:0A000152:SSL routines::unsafe legacy renegotiation disabled

问题出现前景:
新笔记本win11系统安装git clone无任何反应也没有报错信息,尝试各种方式无果,在升级最新版本git拉代码时会报git clone报 OpenSSL/3.1.1: error:0A000152:SSL routines::unsafe legacy renegotiation disabled,也是尝试各种方式无果,
解决方法:
怀疑是win11系统兼容git的问题,尝试着换了git最稳定版本Git-2.30.2-64-bit:后竟解决折磨我两天的兼容问题。使用win11安装git亲测不能用太旧或最新版本的包,已将这个版本的git安装包上传我的资源,希望可以帮助出现相同问题的人。
Git-2.30.2版本下载地址:链接: Git-2.30.2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用\[1\]和引用\[3\]的内容,当执行"git clone"命令时,可能会出现连接失败的错误。这个错误通常是由于git无法使用SSL进行连接所导致的。解决这个问题的方法是使用libcurl4-gnutls-dev替换gnutls对git进行编译。以下是解决方法的具体步骤: 1. 打开终端,并在根目录下执行以下命令更新软件包列表: ``` sudo apt-get update ``` 2. 安装必要的软件包和依赖项: ``` sudo apt-get install build-essential fakeroot dpkg-dev libcurl4-openssl-dev ``` 3. 使用libcurl4-gnutls-dev替换gnutls对git进行编译: ``` mkdir ~/git-openssl cd ~/git-openssl apt-get source git ``` 4. 进入git源码目录: ``` cd git-2.17.1/ #实际版本可能不同 ``` 5. 编译和安装git: ``` sudo make sudo make install ``` 通过以上步骤,你应该能够成功解决git clone https://github.com/ros/catkin.git失败的问题。请注意,实际的git版本和目录可能会有所不同,所以请根据你的实际情况进行相应的调整。 #### 引用[.reference_title] - *1* *3* [git clone fatal: unable to access ‘https://github.com/robopeak/rplidar_ros.git/](https://blog.csdn.net/m0_53294928/article/details/122736258)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Ubuntu18.04 编译 ORB-SLAM2(./build.sh + ./build_ros.sh)完整流程,各种报错处理(踩坑总结)](https://blog.csdn.net/m0_60355964/article/details/124065545)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值