[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: having a problem removing a package



Rodney D. Myers <rod_myers@fastmail.fm> wrote:
> On 8/18/12 8:56 PM, Sven Hartge wrote:
>> Rodney D. Myers <rod_myers@fastmail.fm> wrote:

>>> > /etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
>>> > invoke-rc.d: initscript bandwidthd, action "start" failed.
>>> > dpkg: error while cleaning up:
>>> > subprocess installed post-installation script returned error exit status 2
>>> > Errors were encountered while processing:
>>> > /var/cache/apt/archives/bandwidthd_2.0.1+cvs20090917-4.1_i386.deb
>>> > E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> > How can I get this program uninstalled?

>> Easiest thing you can do is to edit the failing init script and replace
>> its contents with a simple
>> 
>> #!/bin/sh
>> exit 0
>> 
>> and then try to remove the package again. This new "init" script will
>> exit with a positive exit code and dpkg will be happy to remove the
>> package.

> Dumb question.

> Where is the script located? in the *.deb package

The path failing script is referenced in the error message:

/etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected

You can either fix the script or, as you are removing the package
anyway, just make it exit 0 and be done with this.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.


Reply to: