Preconfigure stage fails

Bug #802530 reported by Ian Martin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bandwidthd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Bandwithd fails to install it's conf file:

Get:1 http://gb.archive.ubuntu.com/ubuntu/ natty/universe bandwidthd amd64 2.0.1+cvs20090917-4 [80.5 kB]
Fetched 80.5 kB in 0s (266 kB/s)
Preconfiguring packages ...
cp: cannot stat `/usr/share/doc/bandwidthd/bandwidthd.conf': No such file or directory
bandwidthd failed to preconfigure with exit status 1.
Selecting previously deselected package bandwidthd.
(Reading database ... 347977 files and directories currently installed.)
Unpacking bandwidthd (from .../bandwidthd_2.0.1+cvs20090917-4_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up bandwidthd (2.0.1+cvs20090917-4) ...
 * Reloading web server config apache2 [ OK ]
 * BandwidthD: No configuration file found, not starting.

This is because:
debian/bandwidthd.config copies /usr/share/doc/bandwidthd/bandwidthd.conf to a config file, for adjusting to the local configuration.

However in debian/rules the configuration is done before the manpage installation that installs the bandwidthd.conf file

Running
sudo dpkg-reconfigure bandwidthd
installs the correcting conf file as the conf file in /usr/share is now there

 'lsb_release -rd'
Description: Ubuntu 11.04
Release: 11.04

apt-cache policy bandwidthd
bandwidthd:
  Installed: 2.0.1+cvs20090917-4
  Candidate: 2.0.1+cvs20090917-4
  Version table:
 *** 2.0.1+cvs20090917-4 0
        500 http://gb.archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status

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