2.0.0.484-1ubuntu2.10 triggers uninitialized constant Gem::SafeYAML on calling gem2.0 install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ruby2.0 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# Summary
Our Docker builds have just started failing as soon as 2.0.0.484-
# Required Info
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
ruby2.0:
Installed: 2.0.0.484-
Candidate: 2.0.0.484-
Version table:
*** 2.0.0.484-
500 http://
500 http://
100 /var/lib/
2.
500 http://
3) What you expected to happen
"gem install rubygems-update" to work
4) What happened instead
We see the error below
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::SafeYAML
# Recreate:
To recreate, take the following Dockerfile and try to build the image:
-----------
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install ruby2.0 ruby2.0-dev
RUN gem2.0 install rubygems-update
-----------
This produces the following output:
-----------
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM ubuntu:trusty
---> 38c759202e30
Step 2/4 : ENV DEBIAN_FRONTEND noninteractive
---> Running in fb4736ccbcfe
Removing intermediate container fb4736ccbcfe
---> 8d3ab112c945
Step 3/4 : RUN apt-get update && apt-get -y install ruby2.0 ruby2.0-dev
---> Running in 17e525082f30
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Fetched 23.1 MB in 6s (3333 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
ca-certificates libjs-jquery libruby1.9.1 libruby2.0 libyaml-0-2 openssl
ruby ruby1.9.1 rubygems-
Suggested packages:
javascript-common ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz
ruby1.9.1-dev ruby-switch bundler
The following NEW packages will be installed:
ca-certificates libjs-jquery libruby1.9.1 libruby2.0 libyaml-0-2 openssl
ruby ruby1.9.1 ruby2.0 ruby2.0-dev rubygems-
0 upgraded, 11 newly installed, 0 to remove and 73 not upgraded.
Need to get 7268 kB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Preconfiguring packages ...
Fetched 7268 kB in 0s (9095 kB/s)
Selecting previously unselected package libyaml-0-2:amd64.
(Reading database ... 11558 files and directories currently installed.)
Preparing to unpack .../libyaml-
Unpacking libyaml-0-2:amd64 (0.1.4-3ubuntu3.1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_
Unpacking openssl (1.0.1f-
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-
Unpacking ca-certificates (20170717~14.04.1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../libjs-
Unpacking libjs-jquery (1.7.2+
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_
Unpacking ruby (1:1.9.3.4) ...
Selecting previously unselected package ruby1.9.1.
Preparing to unpack .../ruby1.
Unpacking ruby1.9.1 (1.9.3.
Selecting previously unselected package libruby1.9.1.
Preparing to unpack .../libruby1.
Unpacking libruby1.9.1 (1.9.3.
Selecting previously unselected package libruby2.0:amd64.
Preparing to unpack .../libruby2.
Unpacking libruby2.0:amd64 (2.0.0.
Selecting previously unselected package ruby2.0.
Preparing to unpack .../ruby2.
Unpacking ruby2.0 (2.0.0.
Selecting previously unselected package rubygems-
Preparing to unpack .../rubygems-
Unpacking rubygems-
Selecting previously unselected package ruby2.0-dev:amd64.
Preparing to unpack .../ruby2.
Unpacking ruby2.0-dev:amd64 (2.0.0.
Setting up libyaml-0-2:amd64 (0.1.4-3ubuntu3.1) ...
Setting up openssl (1.0.1f-
Setting up ca-certificates (20170717~14.04.1) ...
Setting up libjs-jquery (1.7.2+
Setting up ruby2.0-dev:amd64 (2.0.0.
Setting up ruby (1:1.9.3.4) ...
Setting up ruby1.9.1 (1.9.3.
Setting up libruby1.9.1 (1.9.3.
Setting up rubygems-
Setting up ruby2.0 (2.0.0.
Setting up libruby2.0:amd64 (2.0.0.
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ca-certificates (20170717~14.04.1) ...
Updating certificates in /etc/ssl/certs... 148 added, 0 removed; done.
Running hooks in /etc/ca-
Removing intermediate container 17e525082f30
---> ba9cb1254920
Step 4/4 : RUN gem2.0 install rubygems-update
---> Running in ba4460591130
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::SafeYAML
The command '/bin/sh -c gem2.0 install rubygems-update' returned a non-zero code: 1
-----------
It doesn't seem to matter what package we try to install, there is always an error.
We have build logs showing that this worked fine with 2.0.0.484-
Status changed to 'Confirmed' because the bug affects multiple users.