Can't uninstall package : /etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected

Bug #361798 reported by Patrick Nicaise
100
This bug affects 14 people
Affects Status Importance Assigned to Milestone
bandwidthd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bandwidthd

E: /var/cache/apt/archives/bandwidthd_2.0.1+cvs20071208-3_i386.deb: subprocess new pre-removal script returned error exit status 2

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess new pre-removal script returned error exit status 2
Package: bandwidthd 2.0.1
SourcePackage: bandwidthd
Title: package bandwidthd 2.0.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 2
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
Patrick Nicaise (pnicaise33) wrote :
Lee Mann (leemann)
description: updated
Revision history for this message
green-elephant999 (gergarfe) wrote :

bandwidthd is impossible of to remove, i dont have practice with ubuntu or with linux an did try many ways. Sorry dont know how to use the root or terminal. Thanks

summary: - package bandwidthd 2.0.1 failed to install/upgrade: subprocess new pre-
- removal script returned error exit status 2
+ /etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: /etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected

Could you please provide the output of the following command:
$ apt-cache policy bandwidthd

Thanks.

Changed in bandwidthd (Ubuntu):
status: New → Incomplete
summary: - /etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
+ Can't uninstall package : /etc/init.d/bandwidthd: 19: Syntax error: "("
+ unexpected
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The only way to reproduce this in Ubuntu is to install the upstream release packaged for SARGE. From the different log files and reports it seems that you're upgrading from this specific version.

Do you confirm that you were upgrading from 2.0.1 ?

Thanks in advance.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in bandwidthd (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
fritzzcat (fritzzthecat) wrote :

l@sp:~$ apt-cache policy bandwidthd
bandwidthd:
  Installed: 2.0.1
  Candidate: 2.0.1+cvs20071208-3
  Version table:
     2.0.1+cvs20071208-3 0
        500 http://archive.ubuntu.com karmic/universe Packages
 *** 2.0.1 0
        100 /var/lib/dpkg/status
l@sp:~$

Changed in bandwidthd (Ubuntu):
status: Invalid → New
Revision history for this message
fritzzcat (fritzzthecat) wrote :

cant uninstall bandwidthd and cant re-install. dpkg marks it for upgrage. . Help !

kb7ypf (kb7ypf)
Changed in bandwidthd (Ubuntu):
status: New → Confirmed
Revision history for this message
tneijsel (t-neijsel) wrote :

I am struggling with the sme problem for months and If I'm able to recall in my memory The bandwithd package never installed/run properly after first installation.

upon re-installation in order to get the programm running this error came up.

The only thing I (we) need is to get rid of this package. Because of this error I am not able to do a dist-upgrade or upgrade or install anything.

Is there a way to get rid of this package in the installation/apt script or a way to omit and proceed any upgrade without this nasty product.

Revision history for this message
tneijsel (t-neijsel) wrote :

Plse find attached error messgs:
ton@tneijsel:~$ sudo apt-get install bandwidthd -qq
Voorconfigureren van pakketten...
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.
Need debconf to interact
voorconfigureren van "bandwidthd" mislukt met foutcode 2
(Database inlezen ... 306545 bestanden en mappen geïnstalleerd.)
Voorbereiden om bandwidthd 2.0.1 te vervangen (door .../bandwidthd_2.0.1+cvs20071208-3_i386.deb) ...
/etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
invoke-rc.d: initscript bandwidthd, action "stop" failed.
dpkg: waarschuwing: verouderd pre-removal script geeft een fout terug met status 2
dpkg - script uit het nieuwe pakket wordt geprobeerd ...
/etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
invoke-rc.d: initscript bandwidthd, action "stop" failed.
dpkg: fout bij afhandelen van /var/cache/apt/archives/bandwidthd_2.0.1+cvs20071208-3_i386.deb (--unpack):
 subproces nieuw pre-removal script gaf een foutwaarde 2 terug
update-rc.d: warning: /etc/init.d/bandwidthd missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
/etc/init.d/bandwidthd: 19: Syntax error: "(" unexpected
invoke-rc.d: initscript bandwidthd, action "start" failed.
dpkg: fout tijdens opruimen:
 subproces installed post-installation script gaf een foutwaarde 2 terug
Fouten gevonden tijdens behandelen van:
 /var/cache/apt/archives/bandwidthd_2.0.1+cvs20071208-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in bandwidthd (Ubuntu):
status: Confirmed → New
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The following untested workaround may help you to remove that application.

edit the file /var/lib/dpkg/info/bandwidthd.postrm
- add the line
exit 0
at line 2 (just below the line starting with #!)
- save and close
- open a terminal and run
$ sudo dpkg --purge bandwidthd

The counterpart of doing this is that it will leave package's configuration files on your system and may break other things (for example the apache configuration must be removed by hand otherwise apache won't start)
Do it at your own risk.

Changed in bandwidthd (Ubuntu):
status: New → Invalid
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.