GnuTLS:TLS 连接未正确终止 - 升级到 ubuntu 16.04 后出现错误

GnuTLS:TLS 连接未正确终止 - 升级到 ubuntu 16.04 后出现错误

我正在使用 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。您可以参考以下说明这个答案

相关内容