Bug#551137: E: Sub-process /usr/bin/dpkg returned an error code (1)

Pawe�� Kramarzewski konstanty.lewin at gmail.com
Mon Jan 4 16:17:25 UTC 2010


Package: python-gtk2-dev
Version: 2.16.0-1
Severity: normal

apt- get -f install launched in English:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 124 not upgraded.
1 not fully installed or removed.
Need to get 0B/150kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 130275 files and directories currently installed.)
Preparing to replace python-gtk2-dev 2.16.0-1 (using .../python-gtk2-dev_2.16.0-1_all.deb) ...
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/python-gtk2-dev_2.16.0-1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-gtk2-dev_2.16.0-1_all.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (1)

I was trying remove this package using dpkg --force-all -r without success. 

dpkg: warning: overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 130275 files and directories currently installed.)
Removing python-gtk2-dev ...
dpkg: error processing python-gtk2-dev (--remove):
subprocess installed pre-removal script returned error exit status 1
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python-gtk2-dev

Is there any way, to remove this package without making a mess in the system?
Pawel
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)

ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gtk2-dev depends on:
ii  libglib2.0-dev                2.22.3-2   Development files for the GLib lib
ii  libgtk2.0-dev                 2.18.5-1   Development files for the GTK+ lib
ii  python-dev                    2.5.4-5    Header files and a static library 
ii  python-gobject-dev            2.20.0-1   Development headers for the GObjec
ii  python-gtk2                   2.16.0-1   Python bindings for the GTK+ widge
ii  python2.5-dev                 2.5.4-3    Header files and a static library 

Versions of packages python-gtk2-dev recommends:
ii  python-gtk2-doc               2.16.0-1   Python bindings for the GTK+ widge

python-gtk2-dev suggests no packages.

-- debconf information excluded






More information about the pkg-gnome-maintainers mailing list