python3-minimal should predepend on versioned version of python3-minimal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3-defaults (Debian) |
Fix Released
|
Unknown
|
|||
python3-defaults (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Artful |
Fix Released
|
Critical
|
Brian Murray | ||
Bionic |
Fix Released
|
Critical
|
Brian Murray |
Bug Description
[Impact]
Release upgrades from Ubuntu 16.04 LTS to either Ubuntu 17.10 or Ubuntu 18.04 LTS can fail if python3-minimial is unpacked before python3.x-minimal so a system won't have a usable python3 symlink. Then upgrades will fail because py3clean, used in prerm scripts of python3 packages, will fail with "not found".
[Test Case]
1) on a Ubuntu 16.04 LTS system with python3-apt installed download debs for Ubuntu 17.10 or 18.04 LTS of python3-minimal and python3-apt
2) dpkg --unpack python3-minimal...
3) dpkg --unpack python3-apt...
Observe the following Traceback:
Preparing to unpack .../python3-
/var/lib/
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/
dpkg: error processing archive /home/jak/
subprocess new pre-removal script returned error exit status 127
/var/lib/
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
With the deb python3-minimal from -proposed you won't be able to unpack python3-minimal without first installing python3.6-minimal. While that may qualify as verification it'd still be good to test unpacking python3-apt. To do that you'll need to install python3.6-minimal from the target release by editing you /etc/apt/
[Regression Potential]
Its possible this could cause or reveal different upgrade failures so some extensive (desktop, cloud, server) upgrade testing should be done.
[A Portion of the Original Description (it was a huge blob of failure)]
do-release-upgrade -d on my 16.04 LTS unity laptop lead to an install failure:
Changed in python3-defaults (Ubuntu): | |
milestone: | none → ubuntu-18.04.1 |
tags: | added: id-5b1968346d9fca4ad3ac71d6 |
summary: |
- failed 16.04 LTS -> 18.04 LTS upgrade + python3-minimal should depend on versioned version of python3-minimal |
summary: |
- python3-minimal should depend on versioned version of python3-minimal + python3-minimal should predepend on versioned version of python3-minimal |
Changed in python3-defaults (Debian): | |
status: | Unknown → New |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in ubuntu-release-upgrader (Ubuntu Artful): | |
status: | New → Invalid |
Changed in python3-defaults (Ubuntu Bionic): | |
milestone: | none → ubuntu-18.04.1 |
Changed in ubuntu-release-upgrader (Ubuntu Bionic): | |
status: | New → Invalid |
Changed in python3-defaults (Ubuntu Artful): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in python3-defaults (Ubuntu Bionic): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in python3-defaults (Ubuntu): | |
milestone: | ubuntu-18.04.1 → none |
tags: | added: rls-cc-incoming |
description: | updated |
Changed in python3-defaults (Ubuntu Artful): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in python3-defaults (Ubuntu Bionic): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in python3-defaults (Ubuntu Artful): | |
status: | Triaged → In Progress |
Changed in python3-defaults (Ubuntu Bionic): | |
status: | Triaged → In Progress |
information type: | Public → Private Security |
information type: | Private Security → Public |
Changed in python3-defaults (Debian): | |
status: | New → Fix Released |
Changed in python3-defaults (Ubuntu): | |
status: | Fix Committed → Fix Released |
no longer affects: | ubuntu-release-upgrader (Ubuntu) |
no longer affects: | ubuntu-release-upgrader (Ubuntu Artful) |
no longer affects: | ubuntu-release-upgrader (Ubuntu Bionic) |
The dpkg --configure -a and apt-get -f install dance brought me to this point:
$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of rhythmbox-plugins:
rhythmbox-plugins depends on python3 (>= 3.6~); however:
Version of python3 on system is 3.5.1-3.
dpkg: error processing package rhythmbox-plugins (--configure): backend- 1.0-1:amd64: backend- 1.0-1:amd64 depends on libgoa-1.0-0b (>= 3.25.4); however:
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgoa-
libgoa-
Version of libgoa-1.0-0b:amd64 on system is 3.18.3-1ubuntu2.
dpkg: error processing package libgoa- backend- 1.0-1:amd64 (--configure): tu0.16. 04.1.
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
gnupg (2.2.4-1ubuntu1) breaks python3-apt (<= 1.1.0~beta4) and is installed.
Version of python3-apt to be configured is 1.1.0~beta1ubun
dpkg: error processing package python3-apt (--configure): plugin- magnatune: plugin- magnatune depends on rhythmbox-plugins; however:
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rhythmbox-
rhythmbox-
Package rhythmbox-plugins is not configured yet.
dpkg: error processing package rhythmbox- plugin- magnatune (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-gdbm:amd64:
python3-gdbm:amd64 depends on python3 (>= 3.6.4-1~); however:
Version of python3 on system is 3.5.1-3.
dpkg: error processing package python3-gdbm:amd64 (--configure): reportlab- accel:amd64: reportlab- accel:amd64 depends on python3 (>= 3.6~); however:
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-
python3-
Version of python3 on system is 3.5.1-3.
dpkg: error processing package python3- reportlab- accel:amd64 (--configure): cairo:amd64: cairo:amd64 depends on python3 (>= 3.6~); however:
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-
python3-
Version of python3 on system is 3.5.1-3.
dpkg: error processing package python3-cairo:amd64 (--configure): inst2.0: amd64 on system is 1.2.26.
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-apt:
python-apt depends on libapt-inst2.0 (>= 1.4~beta3); however:
Version of libapt-
python-apt depends on libapt-pkg5.0 (>= 1.4~beta3); however:
Version of libapt-pkg5.0:amd64 on system is 1.2.26.
dpkg: error processing package python-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of onboard:
onboard depends on python3-cairo; however:
Package python3-cairo:amd64 is not configured yet.
onboard depends on python3 (>= 3.6~); however:
Version of python3 on system is 3.5.1-3.
dpkg: error processing package onboard (--configure): properties- common: properties- common (<= 0.96.24.3) and is installed. properties- com...
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-
gnupg (2.2.4-1ubuntu1) breaks software-
Version of software-