trying to uninstall/remove netapplet fails if netapplet daemon isn't running

Bug #137132 reported by anagor
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
netapplet (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: netapplet

I think that the bug is probably in the packaging remove scripts.
steps to reproduce:
1. install netapplet
2. stop the netapplet daemon:
    sudo /etc/init.d/netapplet stop
3. try to uninstall.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta or later?

Changed in netapplet:
status: New → Incomplete
Revision history for this message
anagor (anagor) wrote :

Unfortunately yes, below is the exact description of the error, on an updated latest 8.10 beta:

Removing netapplet ...
 * Stopping network interface daemon...
invoke-rc.d: initscript netapplet, action "stop" failed.
dpkg: error processing netapplet (--purge):
 subprocess pre-removal script returned error exit status 1
 * Starting network interface daemon...
   ...done.
Errors were encountered while processing:
 netapplet
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

As you can see, the script that tries to stop the daemon fails, because the daemon is already stopped.
Maybe this should give an warning instead of error allowing the removal script to continue.

Revision history for this message
anagor (anagor) wrote :

Fortunately because the removal scripts restarts the daemon, trying to remove the package again will succeed.

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

confirmed on Karmic, marking as such

Changed in netapplet (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.