今天在安装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
即可成功安装