当前位置: 首页 > 图灵资讯 > 技术篇> 安装oh-my-zsh报错fatal: gnutls_handshake() failed: Error in the pull function的解决办法

安装oh-my-zsh报错fatal: gnutls_handshake() failed: Error in the pull function的解决办法

来源:图灵教育
时间:2023-06-20 09:36:01

今天在安装oh-my-zsh遇到安装问题时,报错内容如下:

root@ubuntu18:~/ohmyzsh/tools# ./install.sh Cloning Oh My Zsh...Initialized empty Git repository in /root/.oh-my-zsh/.git/fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': gnutls_handshake() failed: Error in the pull function.Error: git clone of oh-my-zsh repo failed

Stackoverflow找到正确的解决方案:Git: gnutls_handshake() failed: Error in the pull function

里面的这条

安装oh-my-zsh报错fatal: gnutls_handshake() failed: Error in the pull function的解决办法_ubuntu

 

apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev

 

安装上述内容后,再次运行./install.sh可成功安装

安装oh-my-zsh报错fatal: gnutls_handshake() failed: Error in the pull function的解决办法_git_02