installation fails, removal fails as well

Bug #64272 reported by Geoffrey Perez
6
Affects Status Importance Assigned to Milestone
linux-igd (Debian)
Fix Released
Unknown
linux-igd (Ubuntu)
Fix Released
Undecided
Luke Yelavich

Bug Description

(rcludw 1/6/07)

Apt get complains that the package didn't install correctly and refuses to deinstall it. The problem is in /etc/init.d/upnpd.

The init script contains bashisms that break in Edgy.

Also the init script requires configuration before it can be removed with apt-get. This error led apt-get and dpkg to believe that there was a problem with the installation when there really wasn't.

Fix:

Apply the patch attached below to /etc/init.d/upnpd, and rebuild the package.

=============

For some reason, I tried installing this. During the setting up and configuring process, I get hit with this:

Setting up linux-igd (0.cvs20060201-1) ...
External interface not specified in /etc/default/upnpd
invoke-rc.d: initscript upnpd, action "start" failed.
dpkg: error processing linux-igd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-igd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Afterwards, I tried reinstalling, which didn't work, and then decided to remove it completely. It won't remove itself though:

Removing linux-igd ...
External interface not specified in /etc/default/upnpd
invoke-rc.d: initscript upnpd, action "stop" failed.
dpkg: error processing linux-igd (--remove):
 subprocess pre-removal script returned error exit status 1
External interface not specified in /etc/default/upnpd
invoke-rc.d: initscript upnpd, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-igd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Though it would be nice to see this package working, I just want to remove it now just so I don't get the same error each time I run apt-get/synaptic/adept whatever.

Related branches

Revision history for this message
Geoffrey Perez (geopgeop) wrote :

Turns out I have to configure it manually to remove it as the action "stop" can't stop what hasn't been started. The interfaces were commented out by default, so I uncommented them, reinstalled, then uninstalled. I might consider it a bug still in that removing the package doesn't work automatically.

Revision history for this message
stiz (joeandkrystal) wrote :

I had the same problem and your suggestion worked. I can remove the packages.

Revision history for this message
rcludw (rob-rcludw) wrote :

It looks like the problem is with the /etc/init.d/upnpd script.

Added patch

rcludw (rob-rcludw)
description: updated
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

"This is fixed in
http://mentors.debian.net/cgi-bin/sponsor-pkglist?action=details;package=linux-igd

but I'm having difficulties contacting my sponsor and get the packages
uploaded." -- José Fonseca

Changed in linux-igd:
status: Unconfirmed → Confirmed
Changed in linux-igd:
status: Unknown → Unconfirmed
Revision history for this message
Barry deFreese (bddebian) wrote :

Package has been orphaned in Debian.

Revision history for this message
Luke Yelavich (themuso) wrote :

Working on a fix for the version in Feisty, and will endever to get the latest upstream version into feisty+1.

Changed in linux-igd:
assignee: nobody → themuso
status: Confirmed → In Progress
Luke Yelavich (themuso)
Changed in linux-igd:
status: In Progress → Fix Committed
Luke Yelavich (themuso)
Changed in linux-igd:
status: Fix Committed → Fix Released
Changed in linux-igd:
status: New → Fix Committed
Revision history for this message
Geoffrey Perez (geopgeop) wrote :

Hehe, I almost forgot about this bug until I received an email about it telling me that a fix has been committed. I'm glad to know it's been fixed, so, moving on...

Changed in linux-igd:
status: Fix Committed → Fix Released
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.