Ubuntu Docker images include packages deleted from trusty-updates

Bug #1505164 reported by Mark Henwood
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Fix Released
High
Dan Watkins
mod-wsgi (Ubuntu)
Invalid
Undecided
Unassigned
python3.4 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Steps to reproduce (using a docker container):

$ docker pull ubuntu:trusty

$ docker run --rm -it ubuntu:trusty /bin/bash

# lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04

# apt-get update

# apt-get install python3.4
python3.4 is already the newest version.

# python3 --version
Python 3.4.3

# dpkg -l python3.4
ii python3.4 3.4.3-1ubuntu1~14.0

# apt-get install apache2
...

# apt-get install libapache2-mod-wsgi-py3
The following packages have unmet dependencies:
 libapache2-mod-wsgi-py3 : Depends: libpython3.4 (>= 3.4~b1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

description: updated
summary: - 3.4.3 prevents installation of libapache2-mod-wsgi-py3
+ python3.4 3.4.3 prevents installation of libapache2-mod-wsgi-py3
Revision history for this message
Robie Basak (racb) wrote : Re: python3.4 3.4.3 prevents installation of libapache2-mod-wsgi-py3

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Confirmed - I have followed your reproduction steps and hit the same issue.

The underlying reason however is not in the python3.4 nor mod-wsgi packages. The issue is that the Docker "ubuntu:trusty" image seems to include python3.4 version 3.4.3-1ubuntu1~14.04.1 from trusty-proposed but does not (and should not) have trusty-proposed enabled in sources.list. When apt later wants to install a matching libpython3.4, it cannot find it.

So this is a bug in the Docker image, which incorrectly includes packages from Ubuntu from trusty-proposed. I'll mark this Invalid against the mod-wsgi and apache2 packages in Ubuntu as there is no fix to be made in those packages. I'll add a generic Ubuntu task so we don't forget this issue until I can track down who needs to be fixing the Docker image.

Changed in mod-wsgi (Ubuntu):
status: New → Invalid
Changed in python3.4 (Ubuntu):
status: New → Invalid
Revision history for this message
Robie Basak (racb) wrote :

It seems that I can't create a generic Ubuntu task since other Ubuntu tasks already exist, so I'll leave this with the docker.io package for now so we don't lose it.

I think we need a Launchpad project for cloud images if we don't already have one.

Changed in docker.io (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - python3.4 3.4.3 prevents installation of libapache2-mod-wsgi-py3
+ Ubuntu Docker images incorrectly include packages from trusty-proposed
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote : Re: Ubuntu Docker images incorrectly include packages from trusty-proposed

I am unable to repo this bug.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Scratch comment #3.

Dan Watkins (oddbloke)
Changed in docker.io (Ubuntu):
assignee: nobody → Dan Watkins (daniel-thewatkins)
status: Triaged → In Progress
Robie Basak (racb)
summary: - Ubuntu Docker images incorrectly include packages from trusty-proposed
+ Ubuntu Docker images include packages deleted from trusty-updates
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

This was caused by Bug #1500768.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Mark, all,

At some point, Python 3.4.3 was released to the trusty archive. However, a (serious) regression was found, and it was removed from the archive. This image was built after the release, but before the removal, which means it has ended up in a state that apt-get doesn't understand.

The fix for this is simply to release a new image; I have pinged Tianon, the awesome community member who handles the Docker Ubuntu images, on IRC (and subscribed him to this bug) to make that happen. He's based on the West Coast, so the earliest we'll see this happen is in a few hours.

Apologies for the broken state that things ended up in; we strive to produce images of the highest quality, and don't like it when we fall short of that.

Thanks,

Dan

Revision history for this message
Dan Watkins (oddbloke) wrote :

For avoidance of doubt, this problem was caused by the actions taken to remedy bug 1500768. Workarounds to get an instance unstuck can be found there.

Dan

Revision history for this message
Mark Henwood (mcbhenwood) wrote :

Thank you @racb for taking the time to look into this and reassign it correctly - apols for my clumsy assignment.

Dan @daniel-thewatkins - thanks dude.

Dan Watkins (oddbloke)
Changed in docker.io (Ubuntu):
status: In Progress → Fix Released
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.