LINUX.ORG.RU

проблемка с апгрейдом nginx


0

0


Debian unstable.
#> apt-get install nginx
[...]
Preparing to replace nginx 0.5.26-1 (using .../nginx_0.5.30-1_i386.deb) ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/nginx_0.5.30-1_i386.deb
(--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/nginx_0.5.30-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

#> apt-get remove nginx
[...]
Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

#> dpkg --remove --force-all nginx
(Reading database ... 170393 files and directories currently installed.)
Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
nginx
----
что делать? :)

★★★★★

блин, разделом ошибся :(

isden ★★★★★
() автор топика

add exit 0 after line of #!/bin/sh on /etc/init.d/nginx

#!/bin/sh exit 0

and kill all nginx process (sorry I cant use russian)

anonymous
()
Ответ на: комментарий от anonymous

уже пофиксил :) там вобщем нужно было перед апгрейдом просто запустить nginx.

isden ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.