I have this problem too. Fixed with pulling init file from svn and copying into /var/lib/ntop/init.cfg.
- Fred Concklin
#######################
## command and error ##
#######################
user@host:~$ sudo aptitude reinstall ntop
The following packages will be REINSTALLED:
ntop
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up ntop (3:4.0.3+dfsg1-1) ...
dpkg: error processing ntop (--configure):
subprocess installed post-installation script returned error exit status 30
configured to not write apport reports
Errors were encountered while processing:
ntop
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
user@host:~$
#####
user@host:~$ sudo /etc/init.d/ntop stop
.: 4: Can't open /var/lib/ntop/init.cfg
#####
user@host:~$ ls -la /var/lib/ntop/
total 8
drwxr-xr-x 2 root root 4096 Dec 15 11:21 .
drwxr-xr-x 46 root root 4096 Jan 6 17:41 ..
user@host:~$
#####
user@host:~$ sudo dpkg --purge ntop
(Reading database ... 68300 files and directories currently installed.)
Removing ntop ...
.: 4: Can't open /var/lib/ntop/init.cfg
invoke-rc.d: initscript ntop, action "stop" failed.
.: 4: Can't open /var/lib/ntop/init.cfg
invoke-rc.d: initscript ntop, action "stop" failed.
dpkg: error processing ntop (--purge):
subprocess installed pre-removal script returned error exit status 127
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 30
Errors were encountered while processing:
ntop
#####
user@host:~$ svn co https://svn.ntop.org/svn/ntop/trunk/ntop
user@host:~$ sudo cp ntop/packages/debian.official/init /var/lib/ntop/init.cfg
user@host:~$ sudo /etc/init.d/ntop stop
user@host:~$ sudo aptitude remove ntop
The following packages will be REMOVED:
javascript-common{u} libdbi0{u} libjs-mochikit{u} libpython2.6{u} librrd4{u} ntop ntop-data{u} python-mako{u} python-markupsafe{u} wwwconfig-common{u}
0 packages upgraded, 0 newly installed, 10 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 13.0 MB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 68300 files and directories currently installed.)
Removing ntop ...
Removing javascript-common ...
Removing librrd4 ...
Removing libdbi0 ...
Removing ntop-data ...
Removing libjs-mochikit ...
Removing libpython2.6 ...
Removing python-mako ...
Removing python-markupsafe ...
Removing wwwconfig-common ...
Processing triggers for man-db ...
#####
user@host:~$ sudo aptitude purge ntop
The following packages will be REMOVED:
ntop{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] Y
(Reading database ... 67438 files and directories currently installed.)
Removing ntop ...
Purging configuration files for ntop ...
########################
## system information ##
########################
Linux host 2.6.32-5-amd64 #1 SMP Fri Dec 10 15:35:08 UTC 2010 x86_64 GNU/Linux
dpkg -s libc6 | grep ^Version
Version: 2.11.2-7
ntop version: 3:4.0.3+dfsg1-1
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ntop depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii debconf [debconf-2.0] 1.5.37 Debian configuration management sy
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libgdbm3 1.8.3-9 GNU dbm database routines (runtime
ii libgeoip1 1.4.7~beta6+dfsg-1 A non-DNS IP-to-country resolver l
ii libpcap0.8 1.1.1-2 system interface for user-level pa
ii libpython2.6 2.6.6-8+b1 Shared Python runtime library (ver
ii librrd4 1.4.3-1 time-series data storage and displ
ii libssl0.9.8 0.9.8o-4 SSL shared libraries
ii ntop-data 3:4.0.3+dfsg1-1 display network usage in a web bro
ii python-mako 0.3.6-1 fast and lightweight templating fo
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
ntop recommends no packages.
Versions of packages ntop suggests:
pn graphviz <none> (no description available)
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 Fonts for the Ghostscript interpre
-- debconf information excluded
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On 01/13/2011 12:53 AM, Fred Concklin wrote:
> I have this problem too. Fixed with pulling init file from svn and copying into /var/lib/ntop/init.cfg.
Yeah, we are aware of this issue and will be fixed with next upload.
Sorry for the trouble, and thanks for reporting it.
Cheers,
Ludovico