Bug#611173: Fails to install

2011-01-27 Thread Kartik Mistry
On Wed, Jan 26, 2011 at 10:50 PM, Ludovico Cavedon cave...@debian.org wrote:
 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

 Yeah, this is a known issue of 4.0.3+dfsg1-1, which is fixed by the new
 version just uploaded to unstable.

I got this now:

% sudo apt-get install ntop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  ntop
1 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
8 not fully installed or removed.
Need to get 0 B/687 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ntop.
(Reading database ... 184666 files and directories currently installed.)
Preparing to replace ntop 3:4.0.3+dfsg1-1 (using
.../ntop_3%3a4.0.3+dfsg1-2_amd64.deb) ...
/etc/default/ntop: line 4: /var/lib/ntop/init.cfg: No such file or directory
invoke-rc.d: initscript ntop, action stop failed.
/etc/default/ntop: line 4: /var/lib/ntop/init.cfg: No such file or directory
invoke-rc.d: initscript ntop, action stop failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
/etc/default/ntop: line 4: /var/lib/ntop/init.cfg: No such file or directory
invoke-rc.d: initscript ntop, action stop failed.
/etc/default/ntop: line 4: /var/lib/ntop/init.cfg: No such file or directory
invoke-rc.d: initscript ntop, action stop failed.
dpkg: error processing
/var/cache/apt/archives/ntop_3%3a4.0.3+dfsg1-2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
configured to not write apport reports
  dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 30
Errors were encountered while processing:
 /var/cache/apt/archives/ntop_3%3a4.0.3+dfsg1-2_amd64.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100   sudo apt-get install ntop

Removing it:

[kartik@olive:~/]% sudo apt-get remove ntop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ntop
0 upgraded, 0 newly installed, 1 to remove and 32 not upgraded.
8 not fully installed or removed.
After this operation, 1,688 kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing ntop (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
configured to not write apport reports
  Errors were encountered while processing:
 ntop
E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100   sudo apt-get remove ntop

What do you suggest to fix removal?

-- 
Kartik Mistry
Debian GNU/Linux Developer
IRC: kart_ | Identica: @kartikm



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#611173: Fails to install

2011-01-27 Thread Ludovico Cavedon
On 01/27/2011 07:44 AM, Kartik Mistry wrote:
 I got this now:
 
 Preparing to replace ntop 3:4.0.3+dfsg1-1 (using
 .../ntop_3%3a4.0.3+dfsg1-2_amd64.deb) ...
 /etc/default/ntop: line 4: /var/lib/ntop/init.cfg: No such file or directory

Ouch, I was not expecting it to try to stop it even if the installation
of the previous one failed.

I will make it not to fail if the file /var/lib/ntop/init.cfg is not there.

If you
touch /var/lib/ntop/init.cfg
it should fix your issue.

Thanks,
Ludovico



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#611173: Fails to install

2011-01-27 Thread Kartik Mistry
On Fri, Jan 28, 2011 at 12:21 AM, Ludovico Cavedon cave...@debian.org wrote:
 Ouch, I was not expecting it to try to stop it even if the installation
 of the previous one failed.

 I will make it not to fail if the file /var/lib/ntop/init.cfg is not there.

 If you
        touch /var/lib/ntop/init.cfg
 it should fix your issue.

Hmm. Not working!

[kartik@olive:~/]% sudo touch /var/lib/ntop/init.cfg

[kartik@olive:~/]% sudo apt-get remove ntop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ntop
0 upgraded, 0 newly installed, 1 to remove and 32 not upgraded.
8 not fully installed or removed.
After this operation, 1,688 kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing ntop (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
configured to not write apport reports
  Errors were encountered while processing:
 ntop
E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100   sudo apt-get remove ntop

[kartik@olive:~/]% sudo apt-get install ntop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  ntop
1 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
8 not fully installed or removed.
Need to get 0 B/687 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ntop.
(Reading database ... 184666 files and directories currently installed.)
Preparing to replace ntop 3:4.0.3+dfsg1-1 (using
.../ntop_3%3a4.0.3+dfsg1-2_amd64.deb) ...
Stopping network top daemon: /usr/sbin/invoke-rc.d: line 449:  3349
Terminated  ${INITDPREFIX}${INITSCRIPTID} ${saction}
$@
invoke-rc.d: initscript ntop, action stop failed.
Stopping network top daemon: /usr/sbin/invoke-rc.d: line 449:  3370
Terminated  ${INITDPREFIX}${INITSCRIPTID} ${saction}
$@
invoke-rc.d: initscript ntop, action stop failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 143
dpkg - trying script from the new package instead ...
Stopping network top daemon: /usr/sbin/invoke-rc.d: line 449:  3390
Terminated  ${INITDPREFIX}${INITSCRIPTID} ${saction}
$@
invoke-rc.d: initscript ntop, action stop failed.
Stopping network top daemon: /usr/sbin/invoke-rc.d: line 449:  3411
Terminated  ${INITDPREFIX}${INITSCRIPTID} ${saction}
$@
invoke-rc.d: initscript ntop, action stop failed.
dpkg: error processing
/var/cache/apt/archives/ntop_3%3a4.0.3+dfsg1-2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 143
configured to not write apport reports
  dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 30
Errors were encountered while processing:
 /var/cache/apt/archives/ntop_3%3a4.0.3+dfsg1-2_amd64.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100   sudo apt-get install ntop

[kartik@olive:~/]% dpkg -l|grep ntop
iFR ntop3:4.0.3+dfsg1-1
  display network usage in web browser
iU  ntop-data   3:4.0.3+dfsg1-2
  display network usage in a web browser (data files)


-- 
Kartik Mistry
Debian GNU/Linux Developer
IRC: kart_ | Identica: @kartikm



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#611173: Fails to install

2011-01-27 Thread Ludovico Cavedon
On 01/27/2011 06:51 PM, Kartik Mistry wrote:
 On Fri, Jan 28, 2011 at 12:21 AM, Ludovico Cavedon cave...@debian.org wrote:
 Ouch, I was not expecting it to try to stop it even if the installation
 of the previous one failed.

 I will make it not to fail if the file /var/lib/ntop/init.cfg is not there.

 If you
touch /var/lib/ntop/init.cfg
 it should fix your issue.
 
 Hmm. Not working!

Umpf, that init script really need some care :(

I replicated your issue on my computer and tested it.
Please create the /var/lib/ntop/init.cfg file with the following content:
---
USER=ntop
INTERFACES=eth0
---

Then you should be able upgrade.

Thanks,
Ludovico



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#611173: Fails to install

2011-01-26 Thread Kartik Mistry
Package: ntop
Version: 3:4.0.3+dfsg1-1
Severity: serious

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

While installing ntop,

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

Let me know if you want moreinfo.

Thanks.

- -- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ntop depends on:
ii  adduser   3.112+nmu2 add and remove users and groups
ii  debconf [debconf-2.0] 1.5.38 Debian configuration management sy
ii  libc6 2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgdbm3  1.8.3-9GNU dbm database routines (runtime
ii  libgeoip1 1.4.7~beta6+dfsg-1 A non-DNS IP-to-country resolver l
ii  libpcap0.81.1.1-2system interface for user-level pa
ii  libpython2.6  2.6.6-8+b1 Shared Python runtime library (ver
ii  librrd4   1.4.3-1time-series data storage and displ
ii  libssl0.9.8   0.9.8o-4   SSL shared libraries
ii  ntop-data 3:4.0.3+dfsg1-1display network usage in a web bro
ii  python-mako   0.3.6-1fast and lightweight templating fo
ii  zlib1g1:1.2.3.4.dfsg-3   compression library - runtime

ntop recommends no packages.

Versions of packages ntop suggests:
ii  graphviz2.26.3-5 rich set of graph drawing tools
ii  gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 Fonts for the Ghostscript interpre

- -- Configuration Files:
/etc/logcheck/ignore.d.paranoid/ntop [Errno 13] Permission denied: 
u'/etc/logcheck/ignore.d.paranoid/ntop'
/etc/logcheck/ignore.d.server/ntop [Errno 13] Permission denied: 
u'/etc/logcheck/ignore.d.server/ntop'
/etc/logcheck/ignore.d.workstation/ntop [Errno 13] Permission denied: 
u'/etc/logcheck/ignore.d.workstation/ntop'

- -- debconf information:
  ntop/password_mismatch:
  ntop/user: ntop
  ntop/password_empty:
  ntop/interfaces: eth0

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1ACRgACgkQoRg/jtECjI0SPwCeKQVWqwqwzEc62ANamhdNlz61
7aIAmgOSpXB4KXn9TtS8A5VmCtI5OLNN
=o3CS
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#611173: Fails to install

2011-01-26 Thread Ludovico Cavedon
package ntop
forcemerge 609070 611173
thanks

On 01/26/2011 03:44 AM, Kartik Mistry wrote:
 While installing ntop,
 
 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

Yeah, this is a known issue of 4.0.3+dfsg1-1, which is fixed by the new
version just uploaded to unstable.

Thanks!
Ludovico



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org