Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Mam problem z deistalacją ntop , wszelkie próby deinstalacji ntop kończą się niepowodzeniem:
apt-get --purge remove ntop Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: munin-common python-mako libyaml-syck-perl liblog-log4perl-perl libnet-snmp-perl libparams-validate-perl munin-node ntop-data python-markupsafe liblog-dispatch-perl libipc-shareable-perl libjs-mochikit libpython2.6 libdate-manip-perl libnet-server-perl libio-multiplex-perl libnet-cidr-perl Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: ntop* 0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded. After this operation, 1774 kB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 53147 files and directories currently installed.) Removing ntop ... Stopping network top daemon: Terminated invoke-rc.d: initscript ntop, action "stop" failed. Stopping network top daemon: Terminated invoke-rc.d: initscript ntop, action "stop" failed. dpkg: error processing ntop (--purge): subprocess installed pre-removal script returned error exit status 143 configured to not write apport reports insserv: warning: script 'lstat' missing LSB tags and overrides insserv: There is a loop between service munin-node and lstat if stopped insserv: loop involving service lstat at depth 2 insserv: loop involving service munin-node at depth 1 insserv: Stopping lstat depends on munin-node and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: ntop E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
Co mówi
aptitude purge ntop
?
Offline
Skrypt startowy „lstat” zawiera błędy, to po pierwsze. Poza tym nie może położyć daemona od ntopa, w sumie najłatwiej jakbyś wyłączył jego automatyczne uruchamianie i zrestartował system jeśli możesz. Jak nie będzie odpalony, to nie będzie trzeba go zatrzymywać.
… albo po prostu ubij go z palca i po sprawie :)
Offline
deamon ntop wywalony z automatycznego uruchamiania
nie mogłem usunąć bootu demona poleceniem - więc wywaliłem wpisy w każdym katalogu RC
aptitude remove ntop The following packages will be REMOVED: ntop 0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded. Need to get 0 B of archives. After unpacking 1774 kB will be freed. (Reading database ... 49853 files and directories currently installed.) Removing ntop ... Stopping network top daemon: Terminated invoke-rc.d: initscript ntop, action "stop" failed. Stopping network top daemon: Terminated invoke-rc.d: initscript ntop, action "stop" failed. dpkg: error processing ntop (--remove): subprocess installed pre-removal script returned error exit status 143 configured to not write apport reports insserv: warning: script 'lstat' missing LSB tags and overrides insserv: There is a loop between service munin-node and lstat if stopped insserv: loop involving service lstat at depth 2 insserv: loop involving service munin-node at depth 1 insserv: Stopping lstat depends on munin-node and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 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:
Ostatnio edytowany przez PiotrekC (2012-01-13 17:58:44)
Offline
killall -9 ntop
? Wygląda jakby był odpalony nadal…
Offline
killall -9 ntop ntop: no process found
Offline
OK, spróbuj pozbyć się na chwilę tego skryptu lstat, choć nie wiem czy to ma bezpośredni związek.
Offline
odinstalowałem go wcześniej - myślałem że to przez niego jest problem
apt-get --purge remove lstat Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package lstat
Offline
lstat doinstalowałem dodatkowo, ciekawe jest to że w etc/ nie mam pliku init.d ??
Offline
Serio? ;) Jeszcze nie widziałem Debiana bez /etc/init.d. O.o
ls -l /etc/init.d/
Offline
znaczy sorki ale to ze ślepoty jest lstat i ntop w init.d
Offline
To zatrzymaj lstat, przenieś gdzieś skrypt na chwilę i wtedy zobacz.
Offline
wywaliłem lstat z init.d wywaliłem ntop i:
apt-get --purge 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 4 not upgraded. 1 not fully installed or removed. After this operation, 1774 kB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 49853 files and directories currently installed.) Removing ntop ... Purging configuration files for ntop ... Processing triggers for man-db ...
skoro usunąłem z palca lstat z init.d to powinienem coś z tym zrobić dalej ?
Offline
Rozumiem, że ntop już się usunął tym razem? Co do lstat to tam skąd go instalowałeś jest pewnie ten skrypt, możesz wsadzić z powrotem i zobaczyć czy będzie działać wszystko. Ewentualnie możesz go wrzucić na forum, może ktoś będzie wiedział co tam trzeba w nim poprawić.
Offline
ntop usunięty już żeby nie było wątpliwości
a lstat i tak chciałem go usunąć i miałem z tym podobny problem jak z ntop - mam tylko wątpliwości czy nie powinienem go jakoś wyczyścić dodatkowo
Ostatnio edytowany przez PiotrekC (2012-01-13 18:34:20)
Offline
A jak go instalowałeś?
Offline
według tego http://dug.net.pl/tekst/79/instalacja_lstat_na_apache2/
Ostatnio edytowany przez PiotrekC (2012-01-13 18:35:38)
Offline
Spróbuj w katalogu ze źródłami dać make uninstall, ale nie wiadomo czy zadziała… Na przyszłość — w Debianie zamiast instalować na żywca via make install, warto użyć choćby programu checkinstall, on wrzuci potrzebne pliki do prostego pakietu .deb, który potem można łatwo usunąć.
A jak nie zadziała, to naokoło… Skompiluj jeszcze raz, ale zamiast make install użyj checkinstall, a potem usuń pakiet.
Offline
/lstat-2.3.2# sudo make checkinstall make: *** No rule to make target `checkinstall'. Stop. root@dcrouter:~/lstat-2.3.2# make checkinstall make: *** No rule to make target `checkinstall'. Stop.
Offline
Samo checkinstall, bez make. :)
Offline
już poradziłem sobie z checkinstall
Done. The new package has been installed and saved to /root/lstat-2.3.2/lstat_2.3.2-1_i386.deb You can remove it from your system anytime using: dpkg -r lstat
dzięki DZIĘKI DZIĘKI :)
Offline