ok: found the steps to reproduce - first here are my python versions:
$ sudo apt-get install python-pip
$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.5 2 auto mode
* 1 /usr/bin/python2.7 1 manual mode
2 /usr/bin/python3.5 2 manual mode
echo 1 | sudo update-alternatives --config python <Enter>
sudo apt-get install python-coverage
sudo apt-get remove python-coverage
all works perfectly (well it says as much)
$ sudo update-alternatives --auto python
update-alternatives: using /usr/bin/python3.5 to provide /usr/bin/python
(python) in auto mode
$ sudo apt-get install python-coverage
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
python-coverage
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/66.8 kB of archives.
After this operation, 317 kB of additional disk space will be used.
Selecting previously unselected package python-coverage.
(Reading database ... 227704 files and directories currently installed.)
Preparing to unpack .../python-coverage_3.7.1+dfsg.1-1ubuntu7_amd64.deb ...
Unpacking python-coverage (3.7.1+dfsg.1-1ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python-coverage (3.7.1+dfsg.1-1ubuntu7) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-coverage (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python-coverage
E: Sub-process /usr/bin/dpkg returned an error code (1)
So it was a mismatch in the python alternative.
I'm unsure whether that qualifies as a bug.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1670808
Title:
package python-coverage 3.7.1+dfsg.1-1ubuntu7 failed to
install/upgrade: subprocess installed post-installation script
returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-coverage/+bug/1670808/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs