Cannot install libsdl2-dev in fresh ubuntu:14.04 Docker container

Bug #1713815 reported by P. J. Reed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Won't Fix
Undecided
Unassigned

Bug Description

In an otherwise unmodified Docker container based on the ubuntu:14.04 image, libsdl2-dev refused to install. Example output:

---
$ sudo docker run -it --rm ubuntu:14.04
root@06938ac08d87:/# apt-get update && apt-get install libsdl2-dev
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Get:4 http://security.ubuntu.com trusty-security/universe Sources [74.7 kB]
Get:5 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [238 kB]
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [819 kB]
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1268 kB]
Get:9 http://security.ubuntu.com trusty-security/restricted amd64 Packages [17.9 kB]
Get:10 http://security.ubuntu.com trusty-security/universe amd64 Packages [235 kB]
Get:11 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4016 B]
Get:12 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.2 kB]
Get:13 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [548 kB]
Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.6 kB]
Get:15 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:16 http://archive.ubuntu.com trusty-backports/main amd64 Packages [14.8 kB]
Get:17 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [40 B]
Get:18 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [52.6 kB]
Get:19 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1396 B]
Get:20 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:21 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:22 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:23 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:24 http://archive.ubuntu.com trusty/multiverse amd64 Packages [169 kB]
Fetched 21.0 MB in 26s (802 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libsdl2-dev : Depends: libsdl2-2.0-0 (= 2.0.2+dfsg1-3ubuntu1.2) but it is not going to be installed
               Depends: libgles2-mesa-dev
               Depends: libglu1-mesa-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
---

I'm not sure what the actually issue is here; all three of those packages can be installed successfully, or "apt-get install libgles2-mesa-dev libsdl2-2.0-0 libglu1-mesa-dev" can be used to install them all at once, after which libsdl2-dev will install successfully.

Still, manually installing dependencies one at a time is not really ideal; I have a continuous integration job that is attempting to automatically build a Docker container with all of its dependencies, and it would take a decent amount of hacking to make it manually install certain dependencies first before installing its target's actual dependencies, plus that is fragile and could potentially break if libsdl2-dev's dependencies ever change.

Revision history for this message
Dan Watkins (oddbloke) wrote : Re: [Bug 1713815] [NEW] Cannot install libsdl2-dev in fresh ubuntu:14.04 Docker container

I can reproduce this both in a lxd container and in an instance on GCE,
so I don't think this is Docker-image-specific.

Using `aptitude` to install instead gives a bit more information about
the reason apt-get won't install the packages:

The following packages have unmet dependencies:
 libgl1-mesa-dri-lts-utopic : Conflicts: libgl1-mesa-dri but 10.1.3-0ubuntu0.6 is to be installed.
 libglapi-mesa-lts-utopic : Conflicts: libglapi-mesa but 10.1.3-0ubuntu0.6 is to be installed.
The following actions will resolve these dependencies:

      Keep the following packages at their current version:
1) libegl1-mesa-dev [Not Installed]
2) libegl1-mesa-drivers-lts-utopic [Not Installed]
3) libegl1-mesa-lts-utopic [Not Installed]
4) libgbm1-lts-utopic [Not Installed]
5) libgl1-mesa-dev [Not Installed]
6) libgl1-mesa-dri-lts-utopic [Not Installed]
7) libgl1-mesa-glx [Not Installed]
8) libglapi-mesa [Not Installed]
9) libgles2-mesa [Not Installed]
10) libgles2-mesa-dev [Not Installed]
11) libglu1-mesa [Not Installed]
12) libglu1-mesa-dev [Not Installed]
13) libsdl2-2.0-0 [Not Installed]
14) libsdl2-dev [Not Installed]
15) libwayland-egl1-mesa-lts-utopic [Not Installed]

      Leave the following dependencies unresolved:
16) libwayland-egl1-mesa-lts-utopic recommends libegl1-mesa-drivers-lts-utopic

Revision history for this message
P. J. Reed (pjreed) wrote :

What's the best way to proceed forward on this? Should I report it somewhere else, or should it be assigned to somebody else?

Revision history for this message
Cristovao Cordeiro (cjdc) wrote :

The release is already EOL. If this is still happening in ESM or also for newer releases, please re-open.

Changed in cloud-images:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.