dpkg installation fails due to file conflict between python-cinderclient and python3-cinderclient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Invalid
|
Undecided
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Chris MacNaughton | ||
python-cinderclient (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When a user upgrades to the bionic-train cloud archive, it is possible to run into a conflict between the python-cinderclient and python3-
Errors were encountered while processing:
/tmp/apt-
E: Sub-process /usr/bin/dpkg returned an error code (1)
[Test Case]
root@cinderclie
root@cinderclie
root@cinderclie
root@cinderclie
With a new package that adds in the correct Breaks/Replaces, the above works as expected rather than erroring in dpkg
[Regression Potential]
Regression potential is minimal as the only change required for this is to update the python3-
-------
Upgrading python3-
It seems there is no equivalent 4.2 upgrade for python-cinderclient so anyone who previously had both versions installed now meet the conflict.
lathiat@optane ~$ sudo apt-get dist-upgrade --auto-remove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
lldb
The following packages will be upgraded:
python3-
1 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
Need to get 0 B/139 kB of archives.
After this operation, 5,120 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 381723 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/share/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
lathiat@optane ~$
Changed in python-cinderclient (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
importance: | Undecided → Critical |
Changed in python-cinderclient (Ubuntu Focal): | |
assignee: | nobody → Chris MacNaughton (chris.macnaughton) |
Changed in cloud-archive: | |
status: | New → Invalid |
description: | updated |
I am having this issue when trying to install Ironic (which uses python- cinderclient) with Horizon (which uses python3- cinderclient) .