installation fails, removal fails as well
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/
Related branches
description: | updated |
Changed in linux-igd: | |
status: | Unknown → Unconfirmed |
Changed in linux-igd: | |
status: | In Progress → Fix Committed |
Changed in linux-igd: | |
status: | Fix Committed → Fix Released |
Changed in linux-igd: | |
status: | New → Fix Committed |
Changed in linux-igd: | |
status: | Fix Committed → Fix Released |
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.