bandwidthd not working unable to reinstall or remove

Asked by Rajinder Sandhu

Dear Sir,
In the hope of saving network usage report, installed bandwidthd from sourceforge but it has neither fully installed or unable to remove it, however software centre is showing installed. Some where I read it is in inconsistent state needs to be reinstalled but problem stays there unable to reinstall or remove it from the system.... I am using onerick ubuntu11.10. Here is the terminal output of the upgradation of bandwidthd........

root@rs-ubuntu-1104:/home/rs# apt-get remove bandwidthd*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'awn-applet-bandwidth-monitor' for regex 'bandwidthd*'
Note, selecting 'bandwidthcalc' for regex 'bandwidthd*'
Note, selecting 'bandwidthd' for regex 'bandwidthd*'
Note, selecting 'bandwidthd-pgsql' for regex 'bandwidthd*'
Package awn-applet-bandwidth-monitor is not installed, so not removed
Package bandwidthcalc is not installed, so not removed
Package bandwidthd-pgsql is not installed, so not removed
The following packages will be REMOVED:
  bandwidthd
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 201 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing bandwidthd (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
No apport report written because MaxReports is reached already
Errors were encountered while processing:bandwidthd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rs-ubuntu-1104:/home/rs#

======================
Pl suggest any work around to fix this problem.........
Thanks
Rajinder

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bandwidthd Edit question
Assignee:
No assignee Edit question
Solved by:
Chris
Solved:
Last query:
Last reply:
Revision history for this message
Chris (fabricator4) said :
#1

I note that you are logged in as root, you should use your normal login and use 'sudo' where possible.

Try the following:

sudo apt-get -f remove bandwidthd

if that does not work find the bandwidthd file/s and remove them with the rm command, then run the above remove command again.

Chris

Revision history for this message
Rajinder Sandhu (sandy744) said :
#2

rs@rs-ubuntu-1104:~$ sudo apt-get -f remove bandwidthd
[sudo] password for rs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  bandwidthd
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 201 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing bandwidthd (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 bandwidthd
E: Sub-process /usr/bin/dpkg returned an error code (1)
rs@rs-ubuntu-1104:~$
=======================================
Still same problem and rm command syntax is not known to me as not used before, pl give example.
Thanks

Revision history for this message
Best Chris (fabricator4) said :
#3

The syntax it just "rm /path/to/filename". So, it would be something _like_

sudo rm /usr/sbin/bandwidthd

To find the exact path and filename try

whereis bandwidthd

Once you've deleted the file you may be able to remove it from the package manager lists

sudo apt-get -f remove bandwidthd

Chris

Revision history for this message
Rajinder Sandhu (sandy744) said :
#4

Thanks Chris for your time...
the bandwidthd started working after copying configuration files to proper location. By default it was not there at all so copied the conf file from documents and pasted at right place... after that it was working fine
Thanks again
Rajinder