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 ntop 3: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