`apt-get install python3.4` on xenial exits 0 despite python3.4 not being available
Bug #1598810 reported by
Dan Watkins
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Triaged
|
Medium
|
Julian Andres Klode |
Bug Description
As per [0], `apt-get install python3.4` won't raise an error (despite the package not existing in xenial, and no installation happening), but `apt-get install not-a-real-package` will. I would expect the behaviour to be the same in both cases.
This may cause issues for users upgrading from trusty to xenial. If someone is running a Python application that relies on Python 3.4, their automation may run "apt-get install python3.4" to ensure that Python 3.4 is available, expecting it to raise an error if python3.4 does not end up installed. It won't, and they will then unexpectedly be running 3.5.
To post a comment you must log in.
(This was specifically seen with the Docker image, which doesn't already have a Python installed; doing `apt-get install python3.4 python3-pip` results in python3.5 being installed, with no error.)