Upgrade bug gutsy to hardy (python errors)

Bug #195028 reported by Philbo
4
Affects Status Importance Assigned to Milestone
startupmanager (Debian)
Fix Released
Unknown
startupmanager (Ubuntu)
Fix Released
Undecided
Marco Rodrigues

Bug Description

Ran the upgrade and there were issues installing python files, ran sudo dpkg --configure -a and received the following errors:

>sudo dpkg --configure -a
Setting up python-brlapi (3.9-5ubuntu1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/bootconfig/__init__.py'
dpkg: error processing python-brlapi (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-rabbyt (0.7.5-1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/bootconfig/__init__.py'
dpkg: error processing python-rabbyt (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-pyorbit (2.14.3-2ubuntu1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/bootconfig/__init__.py'
dpkg: error processing python-pyorbit (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gnome-orca:
 gnome-orca depends on python-brlapi; however:
  Package python-brlapi is not configured yet.
dpkg: error processing gnome-orca (--configure):
 dependency problems - leaving unconfigured
Setting up python-gtksourceview2 (2.1.1-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/bootconfig/__init__.py'
dpkg: error processing python-gtksourceview2 (--configure):
 subprocess post-installation script returned error exit status 1
Setting up gnome-games-data (1:2.21.91-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/bootconfig/__init__.py'
dpkg: error processing gnome-games-data (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-pyatspi:
 python-pyatspi depends on python-pyorbit; however:
  Package python-pyorbit is not configured yet.
dpkg: error processing python-pyatspi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gedit:
 gedit depends on python-gtksourceview2 (>= 2.1.0); however:
  Package python-gtksourceview2 is not configured yet.
dpkg: error processing gedit (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-games:
 gnome-games depends on gnome-games-data (>= 1:2.21); however:
  Package gnome-games-data is not configured yet.
 gnome-games depends on gnome-games-data (<< 1:2.22); however:
  Package gnome-games-data is not configured yet.
dpkg: error processing gnome-games (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-brlapi
 python-rabbyt
 python-pyorbit
 gnome-orca
 python-gtksourceview2
 gnome-games-data
 python-pyatspi
 gedit
 gnome-games

Can you please advise how to resolve?

Thanks.

Revision history for this message
James Westby (james-w) wrote :

Hi,

This error is very confusing, could you please provide some more
information that will provide some insight as to what is going on.
Please run all of the commands in a terminal below and report
all of the output,

dpkg -l startupmanager
grep startupmanager /var/log/dpkg.log
ls /var/lib/python-support/
ls /var/lib/python-support/python2.4
ls /var/lib/python-support/python2.5
ls /var/lib/python-support/python2.4/bootconfig/
ls /var/lib/python-support/python2.5/bootconfig/
ls /usr/lib/python-support/
ls /usr/share/python-support/

Thanks,

James

Revision history for this message
Philbo (phillipdaddy) wrote : Re: [Bug 195028] Re: Upgrade bug gutsy to hardy (python errors)
Download full text (6.7 KiB)

As requested here is the output for the Listed commands...

008-02-24 21:00:03 configure startupmanager 1.9.10-2 1.9.10-2
2008-02-24 21:00:03 status unpacked startupmanager 1.9.10-2
2008-02-24 21:00:03 status half-configured startupmanager 1.9.10-2
2008-02-24 21:00:04 status installed startupmanager 1.9.10-2

>ls /var/lib/python-support/
python2.4 python2.5

>ls /var/lib/python-support/python2.4
atom dri.py
atspi.so dri.pyc
BeautifulSoup-3.0.4.egg-info editobj
BeautifulSoup.py elementtree
BeautifulSoup.pyc elementtree-1.2.6_20050316.egg-info
BeautifulSoupTests.py gdata
BeautifulSoupTests.pyc gdata.py-1.0.9.egg-info
bootconfig GnuPGInterface-0.3.2.egg-info
CDDB.py GnuPGInterface.py
CDDB.pyc GnuPGInterface.pyc
cdrom.so gtksourceview2.so
chm libtovid
configobj-4.4.0-py2.5.egg-info ogg
configobj.py ORBit.so
configobj.pyc pyogg.egg-info
DiscID.py pyspi-0.6.1.egg-info
DiscID.pyc pyvorbis.egg-info
driconf-0.9.1.egg-info pyxdg-0.15.egg-info
driconf_commonui.py rabbyt
driconf_commonui.pyc Rabbyt-0.7.5.egg-info
driconf_complexui.py startupmanager-1.9.10.egg-info
driconf_complexui.pyc twill
driconf.py twill-0.9b1.egg-info
driconf.pyc validate.py
driconf_simpleui.py validate.pyc
driconf_simpleui.pyc xdg

>ls /var/lib/python-support/python2.5
atom driconf_simpleui.py
atspi.so driconf_simpleui.pyc
BeautifulSoup-3.0.4.egg-info dri.py
BeautifulSoup.py dri.pyc
BeautifulSoup.pyc editobj
BeautifulSoupTests.py gdata
BeautifulSoupTests.pyc gdata.py-1.0.9.egg-info
berylsettings.a glchess
berylsettings.la gnome_sudoku
berylsettings.so GnuPGInterface-0.3.2.egg-info
bootconfig GnuPGInterface.py
Brlapi-0.5.1.egg-info GnuPGInterface.pyc
brlapi.so gtksourceview2.so
CDDB-1.4-py2.5.egg-info libtovid
CDDB.py ogg
CDDB.pyc ORBit.so
cdrom.so pychm-0.8.4-py2.5.egg-info
chm pyogg.egg-info
configobj-4.4.0-py2.5.egg-info pyspi-0.6.1.egg-info
configobj.py pyvorbis.egg-info
configobj.pyc pyxdg-0.15.egg-info
DiscID.py rabbyt
DiscID.pyc Rabbyt-0.7.5.egg-info
driconf-0.9.1.egg-info startupmanager-1.9.10.egg-info
driconf_commonui.py twill
driconf_commonui.pyc twill-0.9b1.egg-info
driconf_complexui.py validate.py
driconf_complexui.pyc validate.pyc
driconf.py xdg
driconf.pyc

>ls /var/lib/python-support/python2.4/bootconfig/
grub_legacy.py grub.pyc splashy.py threads.pyc utils.py
grub_legacy.pyc __init__.py spl...

Read more...

Revision history for this message
Philbo (phillipdaddy) wrote :
Download full text (8.7 KiB)

Sorry the first part of the report was truncated lets try that again...

>dpkg -l startupmanager

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii startupmanager 1.9.10-2 Grub and Splash screen configuration

>grep startupmanager /var/log/dpkg.log

2008-02-20 10:26:18 upgrade startupmanager 1.9.10-1 1.9.10-2~gutsy1
2008-02-20 10:26:18 status half-configured startupmanager 1.9.10-1
2008-02-20 10:26:21 status unpacked startupmanager 1.9.10-1
2008-02-20 10:26:22 status half-installed startupmanager 1.9.10-1
2008-02-20 10:26:23 status half-installed startupmanager 1.9.10-1
2008-02-20 10:26:23 status unpacked startupmanager 1.9.10-2~gutsy1
2008-02-20 10:26:23 status unpacked startupmanager 1.9.10-2~gutsy1
2008-02-20 10:32:04 configure startupmanager 1.9.10-2~gutsy1 1.9.10-2~gutsy1
2008-02-20 10:32:04 status unpacked startupmanager 1.9.10-2~gutsy1
2008-02-20 10:32:04 status half-configured startupmanager 1.9.10-2~gutsy1
2008-02-20 10:32:05 status installed startupmanager 1.9.10-2~gutsy1
2008-02-24 20:02:04 upgrade startupmanager 1.9.10-2~gutsy1 1.9.10-2
2008-02-24 20:02:04 status half-configured startupmanager 1.9.10-2~gutsy1
2008-02-24 20:02:05 status unpacked startupmanager 1.9.10-2~gutsy1
2008-02-24 20:02:06 status half-installed startupmanager 1.9.10-2~gutsy1
2008-02-24 20:02:06 status half-installed startupmanager 1.9.10-2~gutsy1
2008-02-24 20:02:06 status unpacked startupmanager 1.9.10-2
2008-02-24 20:02:06 status unpacked startupmanager 1.9.10-2
008-02-24 21:00:03 configure startupmanager 1.9.10-2 1.9.10-2
2008-02-24 21:00:03 status unpacked startupmanager 1.9.10-2
2008-02-24 21:00:03 status half-configured startupmanager 1.9.10-2
2008-02-24 21:00:04 status installed startupmanager 1.9.10-2
>
>
>
> >ls /var/lib/python-support/
> python2.4 python2.5
>
> >ls /var/lib/python-support/python2.4
> atom dri.py
> atspi.so dri.pyc
> BeautifulSoup-3.0.4.egg-info editobj
> BeautifulSoup.py elementtree
> BeautifulSoup.pyc elementtree-1.2.6_20050316.egg-info
> BeautifulSoupTests.py gdata
> BeautifulSoupTests.pyc gdata.py-1.0.9.egg-info
> bootconfig GnuPGInterface-0.3.2.egg-info
> CDDB.py GnuPGInterface.py
> CDDB.pyc GnuPGInterface.pyc
> cdrom.so gtksourceview2.so
> chm libtovid
> configobj-4.4.0-py2.5.egg-info ogg
> configobj.py ORBit.so
> configobj.pyc pyogg.egg-info
> DiscID.py pyspi-0.6.1.egg-info
> DiscID.pyc pyvorbis.egg-info
> driconf-0.9.1.egg-info pyxdg-0.15.egg-info
> driconf_commonui.py rabbyt
> driconf_commonui.pyc Rabbyt-0.7.5.egg-info
> driconf_complexui.py startupmanager-1.9.10.egg-info
> driconf_complexui.pyc t...

Read more...

Revision history for this message
James Westby (james-w) wrote :

On Sun, 2008-02-24 at 22:34 +0000, Philbo wrote:
> As requested here is the output for the Listed commands...
>

Thanks,

That is interesting.

There are a couple more commands that I would like to output
of if you could, sorry for not asking for them the first time.

dpkg -S /var/lib/python-support/python2.4/bootconfig
readlink -e /var/lib/python-support/python2.4/bootconfig

I see that you had the backport of startupmanager installed,
and so I think that may well be the source of the problem,
I will investigate that area further.

> I am also experiencing gnome-applets crashing

You should find the package which provides the
crashing applets and report a bug on that. Are you
getting crash notification for them? That would
be the best way to do it if you are.

Thanks,

James

Revision history for this message
Philbo (phillipdaddy) wrote :

Thanks for the response James here is the output of your requests...

>dpkg -S /var/lib/python-support/python2.4/bootconfig
dpkg: /var/lib/python-support/python2.4/bootconfig not found.

>readlink -e /var/lib/python-support/python2.4/bootconfig
/var/lib/python-support/python2.4/bootconfig

I have also attached the crash reports.

Please let me know if you require any further information

Thanks

Phil.

On Tue, Feb 26, 2008 at 6:03 AM, James Westby <email address hidden>
wrote:

>
> On Sun, 2008-02-24 at 22:34 +0000, Philbo wrote:
> > As requested here is the output for the Listed commands...
> >
>
> Thanks,
>
> That is interesting.
>
> There are a couple more commands that I would like to output
> of if you could, sorry for not asking for them the first time.
>
> dpkg -S /var/lib/python-support/python2.4/bootconfig
> readlink -e /var/lib/python-support/python2.4/bootconfig
>
> I see that you had the backport of startupmanager installed,
> and so I think that may well be the source of the problem,
> I will investigate that area further.
>
> > I am also experiencing gnome-applets crashing
>
> You should find the package which provides the
> crashing applets and report a bug on that. Are you
> getting crash notification for them? That would
> be the best way to do it if you are.
>
> Thanks,
>
> James
>
> --
> Upgrade bug gutsy to hardy (python errors)
> https://bugs.launchpad.net/bugs/195028
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Thanks

Phillip Daddy

Revision history for this message
Philbo (phillipdaddy) wrote :

Downloaded the updates and tried to run an update (with fix broken packages)
and received the following error report....

E: /var/cache/apt/archives/python-dbus_0.82.4-1_i386.deb: subprocess new
pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gconf_2.21.1-0ubuntu1_i386.deb: subprocess
new pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gnomecanvas_2.21.1-0ubuntu1_i386.deb:
subprocess new pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gnome2_2.21.1-0ubuntu1_i386.deb:
subprocess new pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gnome2-desktop_2.21.3-0ubuntu1_i386.deb:
subprocess new pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gobject_2.14.1-1_i386.deb: subprocess new
pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-glade2_2.12.1-0ubuntu1_i386.deb:
subprocess new pre-removal script returned error exit status 1
E: /var/cache/apt/archives/python-gtk2_2.12.1-0ubuntu1_i386.deb: subprocess
new pre-removal script returned error exit status 1

It still point to the upgrade issues with Python.

Any ideas?

Thanks

Phil.
On Tue, Feb 26, 2008 at 4:47 PM, Phillip Daddy <email address hidden>
wrote:

> Thanks for the response James here is the output of your requests...
>
> >dpkg -S /var/lib/python-support/python2.4/bootconfig
> dpkg: /var/lib/python-support/python2.4/bootconfig not found.
>
> >readlink -e /var/lib/python-support/python2.4/bootconfig
> /var/lib/python-support/python2.4/bootconfig
>
> I have also attached the crash reports.
>
> Please let me know if you require any further information
>
> Thanks
>
> Phil.
>
>
> On Tue, Feb 26, 2008 at 6:03 AM, James Westby <email address hidden>
> wrote:
>
> >
> > On Sun, 2008-02-24 at 22:34 +0000, Philbo wrote:
> > > As requested here is the output for the Listed commands...
> > >
> >
> > Thanks,
> >
> > That is interesting.
> >
> > There are a couple more commands that I would like to output
> > of if you could, sorry for not asking for them the first time.
> >
> > dpkg -S /var/lib/python-support/python2.4/bootconfig
> > readlink -e /var/lib/python-support/python2.4/bootconfig
> >
> > I see that you had the backport of startupmanager installed,
> > and so I think that may well be the source of the problem,
> > I will investigate that area further.
> >
> > > I am also experiencing gnome-applets crashing
> >
> > You should find the package which provides the
> > crashing applets and report a bug on that. Are you
> > getting crash notification for them? That would
> > be the best way to do it if you are.
> >
> > Thanks,
> >
> > James
> >
> > --
> > Upgrade bug gutsy to hardy (python errors)
> > https://bugs.launchpad.net/bugs/195028
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
>
>
> --
> Thanks
>
> Phillip Daddy

--
Thanks

Phillip Daddy

Revision history for this message
raphael (raphoun) wrote :

Same trouble for medpkg :

avertissement - ancien script pre-removal a retourné un code d'erreur de sortie 1
dpkg - tentative d'exécution du script du nouveau paquet à la place ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 348, in <module>
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/bootconfig/__init__.py'
dpkg : erreur de traitement de /var/cache/apt/archives/python-gnome2_2.22.0-0ubuntu1_i386.deb (--unpack) :
 le sous-processus nouveau script pre-removal a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 /var/cache/apt/archives/python-gconf_2.22.0-0ubuntu1_i386.deb
 /var/cache/apt/archives/python-gnomecanvas_2.22.0-0ubuntu1_i386.deb
 /var/cache/apt/archives/python-glade2_2.12.1-0ubuntu1_i386.deb
 /var/cache/apt/archives/python-gobject_2.14.1-2_i386.deb
 /var/cache/apt/archives/python-gtk2_2.12.1-0ubuntu1_i386.deb
 /var/cache/apt/archives/python-gnome2_2.22.0-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

)

James Westby (james-w)
Changed in startupmanager:
status: New → Confirmed
Revision history for this message
Marco Rodrigues (gothicx) wrote :

I don't think it's an startupmanager problem, but some python-support related one. What you think James ?

Revision history for this message
James Westby (james-w) wrote :

On Thu Sep 17 12:01:42 UTC 2009 Marco Rodrigues wrote:
> I don't think it's an startupmanager problem, but some python-support
> related one. What you think James ?

I'm really not sure.

Thanks,

James

Revision history for this message
Marco Rodrigues (gothicx) wrote :

Looks like an startupmanager problem. It should be fixed in 1.9.13-2 at Debian. I need someone to test it for me.

Changed in startupmanager (Debian):
status: Unknown → Confirmed
Changed in startupmanager (Ubuntu):
status: Confirmed → Fix Released
assignee: nobody → Marco Rodrigues (gothicx)
Revision history for this message
Philbo (phillipdaddy) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Phillip

Phillip Daddy
Internal Infrastructure Project Manager at Toll Holdings Limited
Melbourne Area, Australia

Confirm that you know Phillip Daddy
https://www.linkedin.com/e/j3oe6v-gogmuo0f-2n/isd/3093961744/b6y6HKpW/

--
(c) 2011, LinkedIn Corporation

Changed in startupmanager (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.