package python-uniconvertor 1.1.2-1 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #284936 reported by James Crow
136
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Undecided
Unassigned
python-uniconvertor (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-uniconvertor

Upgraded to 8.10 beta and the upgrade-manager generated an error about python-uniconvertor. I looked at the bugs on launchpad and saw one with the same symptoms. That reporter had installed a different version from somewhere other than the Ubuntu repos. I do not think I ever installed this package from somewhere else.

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: python-uniconvertor 1.1.2-1
SourcePackage: python-uniconvertor
Title: package python-uniconvertor 1.1.2-1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic x86_64

Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :
Download full text (12.5 KiB)

After some Googling I found similar errors. A proposed fix is to add overwrite-local = 1 to /etc/python/debian_config.

I added this to the config file and ran sudo apt-get upgrade. This time things appeared to work, but I had several warnings on screen. Here they are:
james@james:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  kdemultimedia-kio-plugins
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-uniconvertor (1.1.2-1) ...
overwriting local files
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/__init__.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/__init__.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/arrow.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/base.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/bezier.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/blend.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/blendgroup.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/clone.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/color.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/compound.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/curveop.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/dashes.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/document.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/ellipse.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/eps.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/external.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/font.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/gradient.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/graphics.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/group.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/guide.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/handle.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/image.py -> None
warning: already exists: /usr/lib/python2.5/site-packages/uniconvertor/app/Graphics/layer.py -> None
warning: already exists...

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@James
Can you please check if there is any relevant information in /var/log/pycentral.log ; and if so attach that.

Changed in python-uniconvertor:
assignee: nobody → andreas-wenning
status: New → Incomplete
Revision history for this message
James Crow (the-crowbar) wrote :

Andreas,

  That log does not give any indication of what went wrong. It is attached just in case.

james@james:~$ cat /var/log/pycentral.log
2008-10-16 16:34:22 3 pycentral pkginstall: not overwriting local files
2008-10-16 16:43:59 3 pycentral pkginstall: not overwriting local files
2008-10-17 07:51:14 3 pycentral pkginstall: not overwriting local files
2008-10-17 08:26:46 3 pycentral pkginstall: not overwriting local files
2008-10-17 08:30:06 3 pycentral pkginstall: not overwriting local files
2008-10-17 08:30:36 3 pycentral pkginstall: not overwriting local files
2008-10-17 08:33:53 3 pycentral pkginstall: not overwriting local files

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Yeah, that is really not a useful log for anything.

Can I have you attach all the logs from the upgrade. They are located in /var/log/dist-upgrade/

Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :

apt-term.log copied to apt-term.log.user and permissions changed for upload.

Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
James Crow (the-crowbar) wrote :
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

This is what i could dig out of term.log:

Errors were encountered while processing:
 python-uniconvertor
Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
    self.flush()
  File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
IOError: [Errno 9] Bad file descriptor
IOError: [Errno 9] Bad file descriptor
intrepid: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
Setting up python-uniconvertor (1.1.2-1) ...
pycentral: pycentral pkginstall: not overwriting local files
pycentral pkginstall: not overwriting local files
dpkg: error processing python-uniconvertor (--configure):
 subprocess post-installation script returned error exit status 1
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Looks like a problem with python-central in the logging code.

I'm no expert, but "Fatal IO error 9 (Bad file descriptor) on X server :0.0." could suggest that it can't handle not having a real frontend (which happens when run by update-manager).

Changed in python-uniconvertor:
assignee: andreas-wenning → nobody
status: Incomplete → Invalid
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

James, had you a previous version of uniconvertor installed for python 2.5 ? I guess so because you're talking about an upgrade from hardy to intrepid but hardy doesn't ship uniconvertor.

Thanks in advance.

Changed in python-central:
status: New → Incomplete
Revision history for this message
James Crow (the-crowbar) wrote :

@Jean-Baptiste

  I never specifically installed any version of python-uniconvertor. Could it have been installed along with KDE 4.1? I did have that on my Hardy system before the upgrade. I don't know enough about apt and its logging to see if it was pulled in to meet a dependency sometime in the past.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

I've been looking through the log-files. Package python-uniconvertor was installed (to meet a recommends from inkscape) during your dist-upgrade from hardy to intrpid; at least according to dpkg/apt it was a new install of that package.

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

kde4 doesn't seem to depend on uniconvertor but I'm not familiar with kde4.
However pycentral fails because there's already a version of uniconvertor installed in /usr/lib/python2.5/site-packages/uniconvertor/ or /usr/share/pyshared/uniconvertor/ .
If the package replacement doesn't appears in the log file then there is a chance it was installed manually otherwise it means there's a bug in pycentral.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@Jean-Baptiste
The important part is this:
Traceback (most recent call last):
   File "/usr/lib/python2.5/logging/__init__.py", line 753, in emit
     self.flush()
   File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
     self.stream.flush()
 IOError: [Errno 9] Bad file descriptor
 IOError: [Errno 9] Bad file descriptor
 IOError: [Errno 9] Bad file descriptor
 intrepid: Fatal IO error 9 (Bad file descriptor) on X server :0.0.

The log found higher up in this bug where it is complaining about duplicate files is becaouse it is the second run where the first pycentral run crashed (but it seems it generated the files okay in any case, that it now complains about in the second run)

Revision history for this message
florinn (florinnaidin) wrote :

I had the same problem when upgrading from Hardy to Intrepid
I removed python-uniconvertor (apt-get remove) and then installed it again (through Synaptic) and it worked

Revision history for this message
pliz (pliz) wrote :

uninstalling and installing helped me too

Revision history for this message
eliosh (e-colutta) wrote :

uninstalling and installing helped me too

Revision history for this message
Matthias Klose (doko) wrote :

this very much sounds like a problem which should be fixed in jaunty/karmic. closing. please reopen if you see this again.

Changed in python-central (Ubuntu):
status: Incomplete → Fix Released
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.