package python-twisted-mail 8.2.0-2 failed to (re-)install/upgrade: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zur?ck

Bug #412173 reported by aanno
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I had a power failure while installing python-twisted-mail. This leads to the package being bad installed:

$ sudo dpkg --configure python-twisted-mail
dpkg: error processing python-twisted-mail (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
Errors were encountered while processing:
 python-twisted-mail

However, when I'm trying to (re-)install the package:

$ sudo dpkg -i python-twisted-mail_8.2.0-2_all.deb
(Reading database ... 205939 files and directories currently installed.)
Preparing to replace python-twisted-mail 8.2.0-2 (using python-twisted-mail_8.2.0-2_all.deb) ...
dpkg (subprocess): unable to execute old pre-removal script: Exec format error
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2190, in <module>
    main()
  File "/usr/bin/pycentral", line 2184, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1639, in run
    pkg = DebPackage('package', self.args[0], oldstyle=False)
  File "/usr/bin/pycentral", line 377, in __init__
    self.read_pyfiles()
  File "/usr/bin/pycentral", line 408, in read_pyfiles
    self.pkgconfig.set('pycentral', 'include-links', '0')
  File "/usr/lib/python2.6/ConfigParser.py", line 669, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'pycentral'
dpkg: error processing python-twisted-mail_8.2.0-2_all.deb (--install):
 subprocess new pre-removal script returned error exit status 1
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 python-twisted-mail_8.2.0-2_all.deb

Ubuntu release:
$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
NonfreeKernelModules: nvidia
Package: python-twisted-mail 8.2.0-2
PackageArchitecture: all
SourcePackage: twisted-mail
Title: package python-twisted-mail 8.2.0-2 failed to install/upgrade: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
Uname: Linux 2.6.28-14-generic x86_64

Revision history for this message
aanno (thomas-pasch) wrote :
Revision history for this message
Mitch Towner (kermiac) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 512096, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

affects: twisted-mail (Ubuntu) → dpkg (Ubuntu)
Changed in dpkg (Ubuntu):
status: New → Confirmed
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.