package isdnutils-base None failed to uninstall: Unterprozess post-removal script gab den Fehlerwert 128 zurück

Bug #281324 reported by evolutioncv
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
isdnutils (Debian)
Fix Released
Unknown
isdnutils (Ubuntu)
Fix Released
Undecided
Jean-Baptiste Lallement

Bug Description

Binary package hint: isdnutils

I am using intrepid ibex, latest updates,
isdnutils-base 1:3.12.200711270-ubuntu1

i expected it to uninstall.

I installed it to try to get my isdn-adapter to work. It didn't so i tried to remove the isdn packages. isdnutils-base will not uninstall. All i get is some error-code 128.

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
ErrorMessage: Unterprozess post-removal script gab den Fehlerwert 128 zurück
NonfreeKernelModules: nvidia
Package: isdnutils-base None
SourcePackage: isdnutils
Title: package isdnutils-base None failed to install/upgrade: Unterprozess post-removal script gab den Fehlerwert 128 zurück
Uname: Linux 2.6.27-6-generic i686

:: TEST CASE ::
= Without the patch =
$ apt-get install isdnutils-base
$ touch /etc/isdn/test_file
$ apt-get remove --purge isdnutils-base

Output
Purging configuration files for isdnutils-base ...
There are still files in /etc/isdn/ that you may want to remove manually.
dpkg: error processing isdnutils-base (--purge):
 subprocess post-removal script returned error exit status 20

= With the patch =
$ apt-get install isdnutils-base
$ touch /etc/isdn/test_file
$ apt-get remove --purge isdnutils-base

Output
Purging configuration files for isdnutils-base ...
dpkg - warning: while removing isdnutils-base, directory `/etc/isdn' not empty so not removed.
Processing triggers for menu ...
Processing triggers for man-db ...

Result: The warning is still there but not the error.

Related branches

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

Thanks for your report.

Confirmed in intrepid

black:~# apt-cache policy isdnutils-base
isdnutils-base:
  Installed: (none)
  Candidate: 1:3.12.20071127-0ubuntu1
  Version table:
     1:3.12.20071127-0ubuntu1 0

Changed in isdnutils:
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a patch to fix this.

description: updated
Changed in isdnutils:
status: Unknown → New
Changed in isdnutils:
assignee: nobody → jibel
status: Confirmed → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :

intrepid does not have automake1.8 any more. I updated the patch in that regard.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package isdnutils - 1:3.12.20071127-0ubuntu2

---------------
isdnutils (1:3.12.20071127-0ubuntu2) intrepid; urgency=low

  [ Jean-Baptiste Lallement ]
  * isdnutils-base.postrm : Remove echo when /etc/isdn can't be deleted
    This triggers an error purging the package (LP: #281324)

  [ Daniel Holbach ]
  * debian/control, debian/rules: move from automake-1.8 to automake-1.10, we
    don't have the former anymore.

 -- Daniel Holbach <email address hidden> Mon, 13 Oct 2008 15:07:57 +0200

Changed in isdnutils:
status: In Progress → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
David Racine (bass-dr) wrote :

There is still a bug here (at least on Jaunty), you cannot purge this package if there is nothing in /etc/isdn or if /etc/isdn doesn't exist before purging...

Error:
Suppression de isdnutils-base ...
Purge des fichiers de configuration de isdnutils-base ...
rmdir: échec de suppression de `/etc/isdn': Aucun fichier ou dossier de ce type
dpkg : erreur de traitement de isdnutils-base (--purge) :
 le sous-processus post-removal script a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 isdnutils-base
E: Sub-process /usr/bin/dpkg returned an error code (1)

Translated: rmdir: cannot delete /etc/isdn : No such file or directory

Workaround :
sudo mkdir /etc/isdn
sudo touch /etc/isdn/wtv
sudo aptitude purge isdnutils-base
sudo rm -r /etc/isdn

Changed in isdnutils (Debian):
status: New → Fix Released
Revision history for this message
MIASLE67 (matthias-miasle) wrote :

The above workarround worked perfect for me. (Ubuntu 9.10, AMD64)

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.