[ubuntu-uk] Installation of package failed - now I can't remove it!
Tyler J. Wagner
tyler at tolaris.com
Wed Oct 10 16:25:35 UTC 2012
On 2012-10-10 15:17, Gordon Burgess-Parker wrote:
> In tried installing Bandwidthd from here: http://bandwidthd.sourceforge.net/.
> It didn't install properly. On trying the re-install I got this:
> Preparing to replace bandwidthd 2.0.1 (using
> .../SARGE-bandwidthd_2.0.1_i386.deb) ...
> /etc/init.d/bandwidthd: 19: /etc/init.d/bandwidthd: Syntax error: "("
> invoke-rc.d: initscript bandwidthd, action "stop" failed.
> dpkg: warning: subprocess old pre-removal script returned error exit status 2
The problem is that the /etc/init.d/bandwidthd script has an error. Replace
all lines after the first with "exit 0" and it will work:
After that removing the package will probably work.
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
More information about the ubuntu-uk