PDA

View Full Version : Problem with Testing upgrade


jpaulb
07-04-2007, 06:47 AM
The testing upgrade stopped with the following errors. There is something missing from the python package.

---------------------------------------------------
Setting up python-support (0.6.4) ...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 270, in ?
process(basedir,install_modules([pyver]))
File "/usr/sbin/update-python-modules", line 162, in process
func(basedir, dir, file)
File "/usr/sbin/update-python-modules", line 129, in install_modules_func
raise "Trying to overwrite %s which is already provided by %s"%(os.path.join (dir,file),otherdir)
Trying to overwrite gtk-2.0/gtk/deprecation.py which is already provided by /usr /share/python-support/python-gtk
dpkg: error processing python-support (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-gobject:
python-gobject depends on python-support (>= 0.3.4); however:
Package python-support is not configured yet.
dpkg: error processing python-gobject (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gtk2:
python-gtk2 depends on python-support (>= 0.3.4); however:
Package python-support is not configured yet.
python-gtk2 depends on python-gobject (>= 2.12.1); however:
Package python-gobject is not configured yet.
dpkg: error processing python-gtk2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gnome2:
python-gnome2 depends on python-support (>= 0.3.4); however:
Package python-support is not configured yet.
python-gnome2 depends on python-gtk2 (>= 2.10.3); however:
Package python-gtk2 is not configured yet.
dpkg: error processing python-gnome2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-glade2:
python-glade2 depends on python-support (>= 0.3.4); however:
Package python-support is not configured yet.
python-glade2 depends on python-gtk2 (= 2.10.4-3); however:
Package python-gtk2 is not configured yet.
dpkg: error processing python-glade2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-btdownload:
gnome-btdownload depends on python-gtk2; however:
Package python-gtk2 is not configured yet.
gnome-btdownload depends on python-gnome2; however:
Package python-gnome2 is not configured yet.
gnome-btdownload depends on python-glade2 (>= 2.0.0); however:
Package python-glade2 is not configured yet.
dpkg: error processing gnome-btdownload (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gmenu:
python-gmenu depends on python-gtk2; however:
Package python-gtk2 is not configured yet.
dpkg: error processing python-gmenu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-menus:
gnome-menus depends on python-gmenu (= 2.18.2-1); however:
Package python-gmenu is not configured yet.
gnome-menus depends on python-glade2; however:
Package python-glade2 is not configured yet.
dpkg: error processing gnome-menus (--configure):
dependency problems - leaving unconfigured
Setting up python2.5-minimal (2.5.1-1) ...
Linking and byte-compiling packages for runtime python2.5...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 270, in ?
process(basedir,install_modules([pyver]))
File "/usr/sbin/update-python-modules", line 162, in process
func(basedir, dir, file)
File "/usr/sbin/update-python-modules", line 129, in install_modules_func
raise "Trying to overwrite %s which is already provided by %s"%(os.path.join (dir,file),otherdir)
Trying to overwrite gtk-2.0/gtk/deprecation.py which is already provided by /usr /share/python-support/python-gtk
dpkg: error processing python2.5-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.5:
python2.5 depends on python2.5-minimal (= 2.5.1-1); however:
Package python2.5-minimal is not configured yet.
dpkg: error processing python2.5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-egenix-mxdatetime:
python-egenix-mxdatetime depends on python2.5; however:
Package python2.5 is not configured yet.
dpkg: error processing python-egenix-mxdatetime (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-support
python-gobject
python-gtk2
python-gnome2
python-glade2
gnome-btdownload
python-gmenu
gnome-menus
python2.5-minimal
python2.5
python-egenix-mxdatetime
E: Sub-process /usr/bin/dpkg returned an error code (1)

bluesdog
07-05-2007, 12:39 AM
Many months ago, I had a similar python-related problem, which I solved by temporarily renaming a file, which dpkg complained it couldn't overwrite.

On my, mostly lenny with a bit of sid, box, /usr/share/python-support/python-gtk is a symlink to /etc/alternatives/python-gtk, which is a symlink to /usr/share/python-gtk-2.0... which does not exist!

Try this: Temporarily remove the symlinks, and rename /usr/share/python-gtk-2.0 (if it exists!)

Example: # rm /usr/share/python-support/python-gtk
# rm /etc/alternatives/python-gtk
# mv /usr/share/python-gtk-2.0 /usr/share/python-gtk-2.0_backupThen try # dpkg --configure -a

jpaulb
07-14-2007, 03:10 PM
sorry for not ansering back.
I removed an app. called jppy and its dependencies and all is working