![GnuTLS:TLS 连接未正确终止 - 升级到 ubuntu 16.04 后出现错误](https://linux22.com/image/1141329/GnuTLS%EF%BC%9ATLS%20%E8%BF%9E%E6%8E%A5%E6%9C%AA%E6%AD%A3%E7%A1%AE%E7%BB%88%E6%AD%A2%20-%20%E5%8D%87%E7%BA%A7%E5%88%B0%20ubuntu%2016.04%20%E5%90%8E%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我正在使用 ubuntu server 16.04。我今天早上刚刚升级。这个命令是 redmine 升级的一部分,会产生 GnuTLS 错误。我在网上搜索了解决方案,但没有找到。任何建议都将不胜感激。
**bundle install --gemfile=/opt/redmine/redmine/Gemfile**
Fetching https://github.com/jbox-web/gitolite-rugged.git
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Retrying `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` in directory /home/sysadmin has failed.error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Retrying `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` in directory /home/sysadmin has failed.error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Retrying `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` in directory /home/sysadmin has failed.error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
**Git error: command `git clone 'https://github.com/jbox-web/gitolite-rugged.git' "/home/sysadmin/.gem/ruby/2.2.3/cache/bundler/git/gitolite-rugged-f96eae3bf467935eea22ec876625e07825442454" --bare --no-hardlinks --quiet` in directory
/home/sysadmin has failed.***
答案1
这可能是 SSL 问题(您是否更改了证书,或者在升级期间更新了加密库)?
您可以尝试重新安装 git,或者,如果失败了,您可以使用不同的加密后端从源代码重建 git。您可以参考以下说明这个答案。