今天在安装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
里面的这条
apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
安装上述内容后,再次运行./install.sh
可成功安装