Bug#476678: Updating python-uno fails at first
clone 476678 -1
reassign -1 python-central
thanks
Hi,
Goswin von Brederlow wrote:
> when updating python-uno I get an error on the first try:
>
> Unpacking replacement openoffice.org ...
> Preparing to replace python-uno 1:2.4.0-3 (using .../python-uno_1%3a2.4.0-4_amd64.deb) ...
> INFO: using old version '/usr/bin/python2.3'
> Traceback (most recent call last):
> File "/usr/bin/pycentral", line 1833, in ?
> main()
> File "/usr/bin/pycentral", line 1827, in main
> rv = action.run(global_options)
> File "/usr/bin/pycentral", line 1287, in run
> requested = pyversions.requested_versions_for_runtime(version_field, version_only=True)
> File "/usr/share/pycentral-data/pyversions.py", line 213, in requested_versions_for_runtime
> raise ValueError, 'empty set of versions'
> ValueError: empty set of versions
> dpkg: error processing /var/cache/apt/archives/python-uno_1%3a2.4.0-4_amd64.deb (--unpack):
> subprocess pre-installation script returned error exit status 1
python-uno only supports the default python.
This sounds for me like python-central wanting do stuff when neither the
new python2.5 nor the new python is not unpacked on the system yet:
> Selecting previously deselected package python2.5-minimal.
> Unpacking python2.5-minimal (from .../python2.5-minimal_2.5.2-3_amd64.deb) ...
> Selecting previously deselected package python2.5.
> Unpacking python2.5 (from .../python2.5_2.5.2-3_amd64.deb) ...
> Preparing to replace python 2.4.4-2 (using .../python_2.5.2-1_all.deb) ...
> Unpacking replacement python ...
> Preparing to replace python-minimal 2.4.4-2 (using .../python-minimal_2.5.2-1_all.deb) ...
> Unpacking replacement python-minimal ...
as done here ...
> Retrying it works:
[...]
Because the new python/python2.5 is now installed...
> I guess there is some depends or pre-depends missing.
preeinst, So Pre-Depends:.
But I am not exactly convinced python-uno should have the Pre-Depends:.
dh_pycentral adds the preinst/prerm/postinst snippets.
I think the fix should be in either python-central or an other python
package and we shouldn't add Pre-Depends: on python packagees just
supporting the default verssion...
Cloning to python-central (python-uno'd need a rebuild when
dh_pycentral gets changed)
Regards,
Rene
Reply to: