[feisty] dpkg refuses to uninstall netkit-inetd due to script error

Bug #120080 reported by Morten Kjeldgaard
4
Affects Status Importance Assigned to Milestone
netkit-base (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

When trying to remove netkit-inetd I get the following error message:

Removing netkit-inetd ...
/var/lib/dpkg/info/netkit-inetd.prerm: 5: /etc/init.d/inetd: not found
dpkg: error processing netkit-inetd (--remove):
 subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
 netkit-inetd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

It is possible to recover -- get dpkg -r to complete -- by doing

touch /etc/init.d/inetd
chmod 755 /etc/init.d/inetd

dpkg -r netkit-inetd

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

This patch will call update-rc.d in prerm, instead of calling /etc/init.d/inetd directly, allowing update-rc.d to deal gracefully with the situation. Thus, the above situation should be avoided.

The patch applies to distributions feisty and earlier.

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

Patch submitted

Changed in netkit-base:
status: New → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Server Team: could you please take a look at it?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Søren: can you take a look at it?

Revision history for this message
Martin Pitt (pitti) wrote :

That should ceratinly be "invoke-rc.d", not "update-rc.d", and it needs to be "|| true"d. Looking at it now.

Revision history for this message
Martin Pitt (pitti) wrote :

Oh, that's in fact obsolete. It's only in Feisty, and this will go EOL in a couple of days.

Changed in netkit-base:
status: Confirmed → Won't Fix
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.