Error during Dapper-->Edgy update, problem removing python2.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
Binary package hint: python2.4-minimal
Launched 'gksudo "update-manager -c -d"' for Dapper-Edgy upgrade. During the install this error appeared:
'Could not install 'python2.4-minimal'
subprocess post-installation script returned error exit status 1'
After pressing Close it conntiuned for a while, then presented me with:
'installArchives() failed'
Related branches
Changed in python2.4: | |
importance: | Untriaged → Medium |
Simon Law (sfllaw) wrote : | #1 |
Changed in python2.4: | |
status: | Unconfirmed → Confirmed |
importance: | Medium → High |
Alex Muntada (alex.muntada) wrote : | #2 |
A fix for either installation/
$ cat /usr/share/
[DEFAULT]
default-version = python2.4
supported-versions = python2.4, python2.3
I can't tell for sure, but I'd guess that changing the file above before executing pycentral should fix the bug.
See bug #58062 for further details.
David Planella (dpm) wrote : | #3 |
I can confirm that after doing what Alex Muntada suggested in his previous comment python2.3 could finally be uninstalled from my system.
Also, could the original reporter change the bug title to something more descriptive?
"Error during Dapper-->Edgy update" could mean almost anything, so I guess something mentioning python 2.3 or 2.4 might be more appropriate.
Mike Perry (mike.perry) wrote : | #4 |
This is not just happening in a Dapper->Edgy update. I have just done a fresh install of Knot 3 and I have encountered the same issue after my first 'apt-get update && apt-get dist-upgrade'. Aptitude seems to work around part of the problem, but does not fix it completely.
Dean Loros (autocrosser) wrote : | #5 |
Running into the same problem during a normal update of Edgy--
will try "fix" proposed above--output below-
Setting up python2.4-minimal (2.4.3-8ubuntu1) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
if action.
File "/usr/bin/
for rt in get_installed_
File "/usr/bin/
old = pyversions.
AttributeError: 'module' object has no attribute 'old_versions'
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
python2.4 depends on python2.4-minimal (= 2.4.3-8ubuntu1); however:
Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-minimal
python2.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
Matthias Klose (doko) wrote : | #6 |
please recheck with today's updates installed.
Changed in python2.4: | |
status: | Confirmed → Needs Info |
Freemor (freemor) wrote : | #7 |
seems to be a related problem so I'll post it here rather then a new bug report.
tried to upgrade from Dapper (6.06.1) -> Edgy Beta
tried update-manager -c -d
Failed right after downloading all packages with a very no descriptive error
since the sources.list had been updated (maybe update-manager should restore sources.list if it fails) tried with apt-get dist-upgrade
got the following error (seems python related also so I posted it here )
E: Couldn't configure pre-depend python-gtk2 for gnome-app-install, probably a dependency cycle
beza1e1 (beza1e1) wrote : | #8 |
Tried with and without the "fix" and with updates modules. Same error:
Preconfiguring packages ...
Setting up python2.4-minimal (2.4.3-8ubuntu2) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
if action.
File "/usr/bin/
for rt in get_installed_
File "/usr/bin/
old = pyversions.
File "/usr/share/
value = config.
File "/usr/lib/
raise NoOptionError(
ConfigParser.
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python2.4-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python2.4-minimal (2.4.3-8ubuntu2) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
if action.
File "/usr/bin/
for rt in get_installed_
File "/usr/bin/
old = pyversions.
File "/usr/share/
value = config.
File "/usr/lib/
raise NoOptionError(
ConfigParser.
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
python2.4 depends on python2.4-minimal (= 2.4.3-8ubuntu2); however:
Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2.4-dev:
python2.4-dev depends on python2.4 (= 2.4.3-8ubuntu2); however:
Package python2.4 is not configured yet.
dpkg: error processing python2.4-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-minimal
python2.4
python2.4-dev
Michael Vogt (mvo) wrote : | #9 |
Thanks for your bugreport.
This problem should be fixed with the latest python-central upload (python-
Thanks,
Michael
Changed in python2.4: | |
assignee: | nobody → mvo |
status: | Needs Info → Fix Released |
David Mandelberg (dseomn) wrote : | #10 |
I still get an error.
$ sudo dpkg --configure -a
Setting up python2.4-minimal (2.4.3-8ubuntu2) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = list(pyversions
File "/usr/share/
raise ValueError, 'empty set of versions'
ValueError: empty set of versions
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
python2.4 depends on python2.4-minimal (= 2.4.3-8ubuntu2); however:
Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-minimal
python2.4
$ dpkg -l python-central python2.4-minimal python2.4 python-minimal
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii python-central 0.5.5ubuntu4 register and build utility for Python packages
ii python-minimal 2.4.3-11ubuntu3 A minimal subset of the Python language (default version)
iU python2.4 2.4.3-8ubuntu2 An interactive high-level object-oriented language (version 2.4)
iF python2.4-minimal 2.4.3-8ubuntu2 A minimal subset of the Python language (version 2.4)
$ cat /usr/share/
[DEFAULT]
# the default python version
default-version = python2.4
# all supported python versions
supported-versions = python2.4, python2.5
# formerly supported python versions
old-versions = python2.3
Changed in python2.4: | |
status: | Fix Released → Unconfirmed |
Dean Loros (autocrosser) wrote : | #11 |
How about "forcing" the updated package to install? I "fixed" my problem with--
sudo dpkg -i --force-all /var/cache/
John Vivirito (gnomefreak) wrote : | #12 |
How about "forcing" the updated package to install? I "fixed" my problem with--
sudo dpkg -i --force-all /var/cache/
using --force-all or --force-* is unsafe and shouldnt have to be used.
Michael Vogt (mvo) wrote : | #13 |
This is fixed for people who do the upgrade now.
If your upgrade failed, please try:
$ sudo apt-get update
$ sudo apt-get install python-central
$ sudo apt-get install -f
$ sudo apt-get dist-upgrade
Cheers,
Michael
Changed in python2.4: | |
status: | Unconfirmed → Fix Released |
David Mandelberg (dseomn) wrote : | #14 |
The above didn't work for me. I got the same ValueError as in my previous comment with all the commands except update.
beza1e1 (beza1e1) wrote : | #15 |
I changed /usr/share/
< raise ValueError, 'empty set of versions'
> raise ValueError, 'empty set of versions (%s, %s)' % (vstring, version_only)
Now the error:
Setting up python2.4-minimal (2.4.3-8ubuntu2) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
[...]
ValueError: empty set of versions (2.3, True)
I don't understand exactly what pycentral is supposed to do here, but what does this "2.3" do there?
Changed in python2.4: | |
status: | Fix Released → In Progress |
Michael Vogt (mvo) wrote : | #16 |
What versions of python-minimal and python-central are installed on the machines that are messed up currently?
Changed in python-central: | |
status: | In Progress → Needs Info |
beza1e1 (beza1e1) wrote : | #17 |
> dpkg -l python-minimal python2.4-minimal python-central
ii python-central 0.5.5ubuntu4 register and build utility for Python packages
iF python2.4-minimal 2.4.3-8ubuntu2 A minimal subset of the Python language (version 2.4)
iU python-minimal 2.4.3-11ubuntu3 A minimal subset of the Python language (default version)
beza1e1 (beza1e1) wrote : | #18 |
The "comment fix" worked for me, i.e. comment out the "if not versions: Value Error empty set" exception in pyversions.py.
I haven't installed python 2.3, yet the configuration of python2.4-minimal tested for just version 2.3. This of course raises the empty set ValueError exception. Where comes this test? Why is this test done?
Changed in python-central: | |
assignee: | mvo → doko |
John Vivirito (gnomefreak) wrote : | #19 |
Does anyone have this problem with python-central 0.5.6ubuntu1?
David Mandelberg (dseomn) wrote : | #20 |
I get the same ValueError:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgtkglext1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 316 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up python2.4-minimal (2.4.3-8ubuntu2) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = list(pyversions
File "/usr/share/
raise ValueError, 'empty set of versions'
ValueError: empty set of versions
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
python2.4 depends on python2.4-minimal (= 2.4.3-8ubuntu2); however:
Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-minimal
python2.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ dpkg -l python-central python2.4 python2.4-minimal
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii python-central 0.5.6ubuntu1 register and build utility for Python packages
iU python2.4 2.4.3-8ubuntu2 An interactive high-level object-oriented language (version 2.4)
iF python2.4-minimal 2.4.3-8ubuntu2 A minimal subset of the Python language (version 2.4)
Keywan Tonekaboni (prometoys) wrote : | #21 |
yes. I have the problem with 0.5.6ubuntu1
Setting up python2.4-minimal (2.4.4~c1-0ubuntu1) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = list(pyversions
File "/usr/share/
raise ValueError, 'empty set of versions'
ValueError: empty set of versions
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python2.4-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
Package: python-central
Version: 0.5.6ubuntu1
Severity: wishlist
-- System Information:
Debian Release: testing/unstable
APT prefers edgy-updates
APT policy: (990, 'edgy-updates'), (990, 'edgy-security'), (990, 'edgy-proposed'), (990, 'edgy-backports'), (990, 'edgy')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-10-powerpc
Locale: LANG=de_DE.UTF-8, LC_CTYPE=
Versions of packages python-central depends on:
ii python 2.4.3-11ubuntu3 An interactive high-level object-o
python-central recommends no packages.
-- no debconf information
Package: python2.4-minimal
Version: 2.4.4~c1-0ubuntu1
Gerald Zehetner (zege) wrote : | #22 |
Just did the upgrade, and no problem found. Maybe the package is fixed now
David Mandelberg (dseomn) wrote : | #24 |
still doesn't work for me
~$ dpkg -l python-central python2.4 python2.4-minimal
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii python-central 0.5.6ubuntu1 register and build utility for Python packages
iU python2.4 2.4.4~c1-0ubuntu1 An interactive high-level object-oriented language (version 2.4)
iF python2.4-minimal 2.4.4~c1-0ubuntu1 A minimal subset of the Python language (version 2.4)
Matthias Klose (doko) wrote : | #25 |
please could you recheck, with debugging output turned on:
sudo sh -c 'PYCENTRAL=debug apt-get dist-upgrade'
Matthias Klose (doko) wrote : | #26 |
fixed in 0.5.6ubuntu2.
Changed in python-central: | |
status: | Needs Info → Fix Released |
Matthias Klose (doko) wrote : | #27 |
reopening, http://
Changed in python-central: | |
status: | Fix Released → In Progress |
John Vivirito (gnomefreak) wrote : | #28 |
I ran update-manager -c -d from a non-up-to-date dapper to Edgy and all went well no errors at all. I did this on Fri Oct, 10 2006
Ed G. (zrchrn) wrote : | #29 |
still have this problem and my python-central is updated.
ag@ag-desktop:/$ sudo apt-get install python-central
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-central is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
openoffice.
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ag@ag-desktop:/$
ag@ag-desktop:/$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
f-spot libgnomecupsui1
tomboy evolution-webcal ekiga libglew1 openoffice.
ttf-devanagar
gthumb gnome-nettool xfonts-scalable openoffice.
libglade2.0-cil ubuntu-docs ttf-punjabi-fonts linux-headers-
libsensors3 wvdial python-at-spi ttf-indic-fonts libglib2.0-cil
libdjvulibre15 libwmf0.2-7 tangerine-
openoffice.
ttf-kochi-mincho doc-base gucharmap brltty-x11 libbtctl2 hwdb-client-gnome
xscreensaver-gl gdebi libmono-
libgconf2.0-cil evolution-exchange evolution openoffice.org-gtk fortunes-min
libmono-
libexchange-
gnome-screensaver rhythmbox libmono-
readahead hpijs brltty screen libpisock9 hplip acpi dc gnome-themes
gnome-
linux-headers-386 scim-modules-socket gnome-pilot powernowd scim fortune-mod
update-notifier apport libscim8c2a ttf-lao usplash-
libmdbtools ttf-kochi-gothic festlex-cmu tango-icon-
libpoppler1-glib libgnome2.0-cil tango-icon-theme foomatic-db-hpijs
xfonts-75dpi scim-gtk2-immodule libgutenprintui2-1 librecode0
libgnome-pilot2 gnome-btdownload bluez-utils libatspi1.0-0 libxevie1
diveintopython gnome-orca ttf-gujarati-fonts xvncviewer hwdb-client-common
gnome-
libmono-
xfonts-base screensaver-
ttf-telugu-fonts gnome-spell bug-buddy ttf-tamil-fonts libgtk2.0-cil
libbrlapi1 mono-gac libgutenprint2 bittorrent language-selector
festlex-poslex at-spi tsclient rdesktop libmono1.0-cil vino
gnome-
firefox-
festvox-kallpc16k libmono-
evolution-plugins landscape-client gtkhtml3.8 tote...
Matthias Klose (doko) wrote : | #30 |
comment 29 is a different issue; openend #67556.
Colin Watson (cjwatson) wrote : | #31 |
We can't fix this any better for Edgy. Matthias, if this has been handled (I've lost track), please close it, otherwise please investigate and fix any remaining issues early in Feisty (hence "later").
Matthias Klose (doko) wrote : | #32 |
closing this report now:
- some outstanding issues with the removal of python2.3 are fixed in feisty
- the update should be more robust now.
we will have to recheck the upgrade from our current LTS release to the next one.
Changed in python-central: | |
status: | In Progress → Fix Released |
See bug 57121 for more details.