9: from /usr/local/lib/site_ruby/2.7.0/rubygems.rb:304:in
activate_bin_path'
8: from /usr/local/lib/site_ruby/2.7.0/rubygems.rb:304:insynchronize'7: from /usr/local/lib/site_ruby/2.7.0/rubygems.rb:306:in
block in activate_bin_path'
6: from /usr/local/lib/site_ruby/2.7.0/rubygems.rb:243:infinish_resolve'5: from /usr/local/lib/site_ruby/2.7.0/rubygems/request_set.rb:435:in
resolve_current'
4: from /usr/local/lib/site_ruby/2.7.0/rubygems/request_set.rb:435:innew'3: from /usr/local/lib/site_ruby/2.7.0/rubygems/resolver/set.rb:24:in
initialize'
2: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:42:inrequire'1: from /usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:67:in
gem'
/usr/local/lib/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:67:insynchronize': deadlock; recursive locking (ThreadError)`
Most helpful comment
A quick tip for anyone finding this issue before a newer version fixes things: I got rid of the warnings by downgrading to the latest RubyGems that doesn't have the deprecation warning:
I did this on Ubuntu 18.04 and it worked nicely. Another option may be to set the env variable
DEBIAN_DISABLE_RUBYGEMS_INTEGRATION(to any value), which disables the problematic library that gets autoloaded, but for me that caused issues with some installed gems.