python2.6 without shlib module gets unpacked/configured before required python2.6-minimal

Bug #603852 reported by dazza5000
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Expired
High
Unassigned

Bug Description

Binary package hint: gnome-menus

you can look at my box if you want to inspect - let me know if you need any more information/details from me

darran

ProblemType: Package
DistroRelease: Ubuntu 10.10
Package: python-gmenu 2.30.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-7.11-generic 2.6.35-rc4
Uname: Linux 2.6.35-7-generic i686
Architecture: i386
Date: Fri Jul 9 22:04:14 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
SourcePackage: gnome-menus
Title: package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
dazza5000 (darran-kelinske) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

Are you upgrading with aptitude?

I got the same issue upgrading because a trigger was activated while upgrading python2.6/python2.6-minimal; the python2.6 updates were moving shutil across packages.

python2.6 correctly depends on python2.6-minimal (= ${binary:Version}), yet python2.6 was unpacked before python2.6-minimal.

I wonder if this is an aptitude bug or some dep loop somewhere, but I couldn't find the latter.

affects: gnome-menus (Ubuntu) → python2.6 (Ubuntu)
Changed in python2.6 (Ubuntu):
assignee: nobody → Loïc Minier (lool)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Loïc Minier (lool) wrote :
Download full text (6.6 KiB)

Retrying the upgrade will fix the issue here.

bee# aptitude
Lecture des fichiers de modifications (« changelog »)... Terminé
apt-listchanges: Souhaitez-vous continuer ? [O/n]
Extraction des modèles depuis les paquets : 100%
Préconfiguration des paquets...
Sélection du paquet librpmio1 précédemment désélectionné.
(Lecture de la base de données... 185784 fichiers et répertoires déjà installés.)
Dépaquetage de librpmio1 (à partir de .../librpmio1_4.8.1-5_amd64.deb) ...
[...] # no python mention, long list of upgrades
Suppression de odbcinst ...
Purge des fichiers de configuration de odbcinst ...
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « libc-bin »...
ldconfig deferred processing now taking place
(Lecture de la base de données... 185799 fichiers et répertoires déjà installés.)
Préparation du remplacement de libpython2.6 2.6.5+20100628-2ubuntu1 (en utilisant .../libpython2.6_2.6.5+20100706-1ubuntu1_amd64.deb) ...
Dépaquetage de la mise à jour de libpython2.6 ...
Préparation du remplacement de python2.6-dev 2.6.5+20100628-2ubuntu1 (en utilisant .../python2.6-dev_2.6.5+20100706-1ubuntu1_amd64.deb) ...
Dépaquetage de la mise à jour de python2.6-dev ...
Préparation du remplacement de python2.6 2.6.5+20100628-2ubuntu1 (en utilisant .../python2.6_2.6.5+20100706-1ubuntu1_amd64.deb) ...
Dépaquetage de la mise à jour de python2.6 ...
Préparation du remplacement de python-dev 2.6.5-5ubuntu3 (en utilisant .../python-dev_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-dev ...
Préparation du remplacement de python-all-dev 2.6.5-5ubuntu3 (en utilisant .../python-all-dev_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-all-dev ...
Préparation du remplacement de python-dbg 2.6.5-5ubuntu3 (en utilisant .../python-dbg_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-dbg ...
Préparation du remplacement de python-all-dbg 2.6.5-5ubuntu3 (en utilisant .../python-all-dbg_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-all-dbg ...
Préparation du remplacement de python-all 2.6.5-5ubuntu3 (en utilisant .../python-all_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-all ...
Préparation du remplacement de python 2.6.5-5ubuntu3 (en utilisant .../python_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python ...
Préparation du remplacement de python-minimal 2.6.5-5ubuntu3 (en utilisant .../python-minimal_2.6.5-5ubuntu4_all.deb) ...
Dépaquetage de la mise à jour de python-minimal ...
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « desktop-file-utils »...
Traitement des actions différées (« triggers ») pour « python-gmenu »...
Rebuilding /usr/share/applications/desktop.fr_FR.utf8.cache...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 11, in <module>
    import sys,os,shutil
ImportError: No module named shutil
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
    from apport.fileu...

Read more...

summary: - package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 1
+ python2.6 without shlib module gets unpacked/configured before required
+ python2.6-minimal
Revision history for this message
dazza5000 (darran-kelinske) wrote : Re: [Bug 603852] Re: package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Yes

On Jul 11, 2010 3:20 AM, "Loïc Minier" <email address hidden> wrote:
> Are you upgrading with aptitude?
>
> I got the same issue upgrading because a trigger was activated while
> upgrading python2.6/python2.6-minimal; the python2.6 updates were moving
> shutil across packages.
>
> python2.6 correctly depends on python2.6-minimal (= ${binary:Version}),
> yet python2.6 was unpacked before python2.6-minimal.
>
> I wonder if this is an aptitude bug or some dep loop somewhere, but I
> couldn't find the latter.
>
> ** Package changed: gnome-menus (Ubuntu) => python2.6 (Ubuntu)
>
> ** Changed in: python2.6 (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: python2.6 (Ubuntu)
> Status: New => Confirmed
>
> ** Changed in: python2.6 (Ubuntu)
> Assignee: (unassigned) => Loïc Minier (lool)
>
> --
> python2.6 without shlib module gets unpacked/configured before required
python2.6-minimal
> https://bugs.launchpad.net/bugs/603852
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “python2.6” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: gnome-menus
>
> you can look at my box if you want to inspect - let me know if you need
any more information/details from me
>
> darran
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.10
> Package: python-gmenu 2.30.0-0ubuntu4
> ProcVersionSignature: Ubuntu 2.6.35-7.11-generic 2.6.35-rc4
> Uname: Linux 2.6.35-7-generic i686
> Architecture: i386
> Date: Fri Jul 9 22:04:14 2010
> ErrorMessage: subprocess installed post-installation script returned error
exit status 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> SourcePackage: gnome-menus
> Title: package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade:
subprocess installed post-installation script returned error exit status 1
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/603852/+subscribe

Revision history for this message
Loïc Minier (lool) wrote :

Ok; looks like an aptitude bug to me; nobody else reported this

affects: python2.6 (Ubuntu) → aptitude (Ubuntu)
Changed in aptitude (Ubuntu):
assignee: Loïc Minier (lool) → nobody
Revision history for this message
dazza5000 (darran-kelinske) wrote : Re: [Bug 603852] Re: python2.6 without shlib module gets unpacked/configured before required python2.6-minimal

great work man

On Sun, Jul 11, 2010 at 7:55 AM, Loïc Minier <email address hidden> wrote:

> Ok; looks like an aptitude bug to me; nobody else reported this
>
> ** Package changed: python2.6 (Ubuntu) => aptitude (Ubuntu)
>
> ** Changed in: aptitude (Ubuntu)
> Assignee: Loïc Minier (lool) => (unassigned)
>
> --
> python2.6 without shlib module gets unpacked/configured before required
> python2.6-minimal
> https://bugs.launchpad.net/bugs/603852
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “aptitude” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: gnome-menus
>
> you can look at my box if you want to inspect - let me know if you need any
> more information/details from me
>
> darran
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.10
> Package: python-gmenu 2.30.0-0ubuntu4
> ProcVersionSignature: Ubuntu 2.6.35-7.11-generic 2.6.35-rc4
> Uname: Linux 2.6.35-7-generic i686
> Architecture: i386
> Date: Fri Jul 9 22:04:14 2010
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> SourcePackage: gnome-menus
> Title: package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade:
> subprocess installed post-installation script returned error exit status 1
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/603852/+subscribe
>

Revision history for this message
Michael Bienia (geser) wrote :

I updated my (some days old) maverick installation with "apt-get upgrade" and ran into the same issue. So it's not only aptitude related.

Revision history for this message
Steffen Möller (moeller-debian) wrote :

Same here, out of the blue with maverick, otherwise always kept up to date:

$ sudo apt-get -u dist-upgrade ....

Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 11, in <module>
    import sys,os,shutil
ImportError: No module named shutil
dpkg: error processing python-gmenu (--unpack):
 subprocess installed post-installation script returned error exit status 1
....
Errors were encountered while processing:
 python-gmenu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Steffen Möller (moeller-debian) wrote :

The funny thing is that until another "apt-get install python-minimal" is performed, one cannot even report the bug with "ubuntu-bug", since this also requires the shutil module :)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you please attach the file /var/log/dpkg.log to this report ? This will allow us to see how package installation was processed by dpkg. This might be a coincidence but this occurs only when upgrading python2.6 together with python-gmenu.

Revision history for this message
Ryan Oram (infinityos) wrote :

I fixed this by manually running "apt-get install python2.6-minimal" before running "apt-get dist-upgrade" again.

Revision history for this message
dazza5000 (darran-kelinske) wrote :

sorry, but i did another upgrade before saving the logs

On Fri, Jul 16, 2010 at 5:46 AM, Ryan Oram <email address hidden> wrote:

> I fixed this by manually running "apt-get install python2.6-minimal"
> before running "apt-get dist-upgrade" again.
>
> --
> python2.6 without shlib module gets unpacked/configured before required
> python2.6-minimal
> https://bugs.launchpad.net/bugs/603852
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “aptitude” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: gnome-menus
>
> you can look at my box if you want to inspect - let me know if you need any
> more information/details from me
>
> darran
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.10
> Package: python-gmenu 2.30.0-0ubuntu4
> ProcVersionSignature: Ubuntu 2.6.35-7.11-generic 2.6.35-rc4
> Uname: Linux 2.6.35-7-generic i686
> Architecture: i386
> Date: Fri Jul 9 22:04:14 2010
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 1
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> SourcePackage: gnome-menus
> Title: package python-gmenu 2.30.0-0ubuntu4 failed to install/upgrade:
> subprocess installed post-installation script returned error exit status 1
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/603852/+subscribe
>

Revision history for this message
Daniel Hartwig (wigs) wrote :

Firstly, this is not an aptitude bug. Aptitude relies on APT to
determine the order in which to install/configure dependencies.
Let us not engage in reassign-pong until a clear culprit is determined.

User lool writes:
> python2.6 correctly depends on python2.6-minimal (=
> ${binary:Version}), yet python2.6 was unpacked before
> python2.6-minimal.

Unpacked packages are not configured. The order of unpacking in this
case is rather irrelevent. It is the order of configuration which is
important however, the error occurs before any configuration is
attempted.

The error is:
> Processing triggers for python-gmenu ...
> Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
> Traceback (most recent call last):
> File "/usr/sbin/update-python-modules", line 11, in <module>
> import sys,os,shutil
> ImportError: No module named shutil
> dpkg: error processing python-gmenu (--unpack):
> subprocess installed post-installation script returned error exit status 1

Correct me if I am wrong with what follows.

Given that, at this point:
  - python2.6, python-minimal are both unpacked, but deconfigred; and
  - module shutil has changed places during this particular upgrade;

it is not safe to run any python code until these packages are
reconfigured. It is common practice to not disable running of python
code during a normal python upgrade because the packages are
previously installed and thus "working". This particular upgrade
causes the python system to not work for some specific modules.

The updated set of python packages in this case should be disabling
the running of python code until they are reconfigured.

To diagnose specifically what is going on here it may be necessary to
examine the particular .deb files involved:

libpython2.6_2.6.5+20100616-1ubuntu2_i386.deb
libpython2.6_2.6.5+20100706-1ubuntu1_i386.deb
python2.6_2.6.5+20100616-1ubuntu2_i386.deb
python2.6_2.6.5+20100706-1ubuntu1_i386.deb
python_2.6.5-5ubuntu3_all.deb
python_2.6.5-5ubuntu4_all.deb
python-minimal_2.6.5-5ubuntu3_all.deb
python-minimal_2.6.5-5ubuntu4_all.deb

and also the python-gmenu packages from around the same time.

Is there a service for Ubuntu similar to snapshot.d.n which could
provide such old files?

Changed in aptitude (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for aptitude (Ubuntu) because there has been no activity for 60 days.]

Changed in aptitude (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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