Public bug reported: I have replicated the problem on Ubuntu 16.04, Ubuntu 12.04 and in Docker environment and in few different ruby versions.
It appears rubygems-integration package monkeypatches rubygems and rubygems fails to load `bundle` executable because it's installed in wrong location. Steps to reproduce and more details can be found here: https://github.com/rubygems/rubygems/issues/2180 Disabling the monkeypatch via "DEBIAN_DISABLE_RUBYGEMS_INTEGRATION" env variable fixes the issue. Downgrade of rubygems to 2.7.4 fixes the issue too. I'm attaching a Dockerfile, running the container will crash. Uncomment the "ENV DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=true" line to fix the issue. I'm not sure what's the best approach here as I don't understand what problems the rubygems-integration is solving, but perhaps it's worth adding another condition to not monkeypatch if rubygems version is 2.7.5 or higher? Thanks for your time! Rob ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: rubygems-integration 1.10 ProcVersionSignature: Ubuntu 4.13.0-32.35~16.04.1-generic 4.13.13 Uname: Linux 4.13.0-32-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.15 Architecture: amd64 CurrentDesktop: Unity Date: Tue Feb 13 16:48:39 2018 InstallationDate: Installed on 2017-10-27 (109 days ago) InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801) PackageArchitecture: all SourcePackage: rubygems-integration UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: rubygems-integration (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug ruby xenial ** Attachment added: "Dockerfile showing the bug" https://bugs.launchpad.net/bugs/1749226/+attachment/5054384/+files/Dockerfile -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1749226 Title: rubygems 2.7.5 fails to execute "bundle" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rubygems-integration/+bug/1749226/+subscriptions -- ubuntu-bugs mailing list firstname.lastname@example.org https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs