Public bug reported:

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

** Affects: twisted-mail (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package

-- 
package python-twisted-mail 8.2.0-2 failed to (re-)install/upgrade: 
Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zur?ck
https://bugs.launchpad.net/bugs/412173
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to