Can't uninstall or disable nginx












1














Title says all, apparently I removed nginx but it keep starting at boot, I'm using lighttpd but nginx starts first causing lighttpd to fail to start, so at every boot I have to stop nginx and start lighttpd manually.



Things that I have done: ( command: output )





  • apt-get remove nginx: Package 'nginx' is not installed, so not removed


  • service nginx status: [...] Active: active (running) [...]

  • update-rc.d nginx remove


  • chkconfig nginx: (nginx off)

  • mv /etc/init.d/nginx /tmp/


  • sysv-rc-conf: (It is disabled at every runlevel)

  • rcconf: (nginx is not listed)


  • ... and many reboot



System: RPi 3B running Raspbian 8 (Jessie)



EDIT:



dpkg -l | awk ' { print $2 } ' | grep ^nginx output:



nginx-common
nginx-full









share|improve this question
























  • dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
    – Mc Kernel
    Apr 20 '17 at 8:42






  • 1




    About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
    – Rui F Ribeiro
    Apr 20 '17 at 14:42
















1














Title says all, apparently I removed nginx but it keep starting at boot, I'm using lighttpd but nginx starts first causing lighttpd to fail to start, so at every boot I have to stop nginx and start lighttpd manually.



Things that I have done: ( command: output )





  • apt-get remove nginx: Package 'nginx' is not installed, so not removed


  • service nginx status: [...] Active: active (running) [...]

  • update-rc.d nginx remove


  • chkconfig nginx: (nginx off)

  • mv /etc/init.d/nginx /tmp/


  • sysv-rc-conf: (It is disabled at every runlevel)

  • rcconf: (nginx is not listed)


  • ... and many reboot



System: RPi 3B running Raspbian 8 (Jessie)



EDIT:



dpkg -l | awk ' { print $2 } ' | grep ^nginx output:



nginx-common
nginx-full









share|improve this question
























  • dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
    – Mc Kernel
    Apr 20 '17 at 8:42






  • 1




    About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
    – Rui F Ribeiro
    Apr 20 '17 at 14:42














1












1








1







Title says all, apparently I removed nginx but it keep starting at boot, I'm using lighttpd but nginx starts first causing lighttpd to fail to start, so at every boot I have to stop nginx and start lighttpd manually.



Things that I have done: ( command: output )





  • apt-get remove nginx: Package 'nginx' is not installed, so not removed


  • service nginx status: [...] Active: active (running) [...]

  • update-rc.d nginx remove


  • chkconfig nginx: (nginx off)

  • mv /etc/init.d/nginx /tmp/


  • sysv-rc-conf: (It is disabled at every runlevel)

  • rcconf: (nginx is not listed)


  • ... and many reboot



System: RPi 3B running Raspbian 8 (Jessie)



EDIT:



dpkg -l | awk ' { print $2 } ' | grep ^nginx output:



nginx-common
nginx-full









share|improve this question















Title says all, apparently I removed nginx but it keep starting at boot, I'm using lighttpd but nginx starts first causing lighttpd to fail to start, so at every boot I have to stop nginx and start lighttpd manually.



Things that I have done: ( command: output )





  • apt-get remove nginx: Package 'nginx' is not installed, so not removed


  • service nginx status: [...] Active: active (running) [...]

  • update-rc.d nginx remove


  • chkconfig nginx: (nginx off)

  • mv /etc/init.d/nginx /tmp/


  • sysv-rc-conf: (It is disabled at every runlevel)

  • rcconf: (nginx is not listed)


  • ... and many reboot



System: RPi 3B running Raspbian 8 (Jessie)



EDIT:



dpkg -l | awk ' { print $2 } ' | grep ^nginx output:



nginx-common
nginx-full






debian systemd nginx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 20 '17 at 4:47









Rui F Ribeiro

38.9k1479129




38.9k1479129










asked Apr 20 '17 at 8:27









Mc Kernel

456515




456515












  • dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
    – Mc Kernel
    Apr 20 '17 at 8:42






  • 1




    About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
    – Rui F Ribeiro
    Apr 20 '17 at 14:42


















  • dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
    – Mc Kernel
    Apr 20 '17 at 8:42






  • 1




    About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
    – Rui F Ribeiro
    Apr 20 '17 at 14:42
















dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
– Mc Kernel
Apr 20 '17 at 8:42




dpkg-query: package 'nginx' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents.
– Mc Kernel
Apr 20 '17 at 8:42




1




1




About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
– Rui F Ribeiro
Apr 20 '17 at 14:42




About the close vote: there are a lot of old documentation around, and still more users bound to think something is wrong with their systems with the changes of nginx from one to multiple packages, and with the migration to systemd; this post might be useful to future readers - the automatic moderation system is also not showing this has got an accepted answer.
– Rui F Ribeiro
Apr 20 '17 at 14:42










1 Answer
1






active

oldest

votes


















4














Raspbian uses systemd to manage services by default, not SysV. Hence sysv-rc-conf and chkconfig having an inconsistent behaviour.



To disable nginx upon boot do:



sudo systemctl disable nginx.service


As for having nginx files hanging around after a successful purge, something must have gone terribly wrong, or there are still packages lying around. The latter is bound to be the case, as nowadays nginx is not a single package anymore, and you need to remove several packages:



$apt-cache search nginx | grep ^nginx | awk ' { print $1 } '
nginx-common
nginx-doc
nginx-extras
nginx-extras-dbg
nginx-full
nginx-full-dbg
nginx-light
nginx-light-dbg


What happened is that nginx went from having a single package to multiple ones. You may list the nginx packages you have still installed:



dpkg -l  | awk ' { print $2 } '  | grep ^nginx


As you updated the post with the nginx packages that you still have, I do recommend doing:



dpkg --purge nginx-common nginx-full


For a future reference, you can check the available packages at:



https://packages.debian.org/jessie/nginx





share|improve this answer























  • It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
    – Mc Kernel
    Apr 20 '17 at 8:40












  • dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
    – Mc Kernel
    Apr 20 '17 at 8:53












  • oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
    – Mc Kernel
    Apr 20 '17 at 8:55













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f360115%2fcant-uninstall-or-disable-nginx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














Raspbian uses systemd to manage services by default, not SysV. Hence sysv-rc-conf and chkconfig having an inconsistent behaviour.



To disable nginx upon boot do:



sudo systemctl disable nginx.service


As for having nginx files hanging around after a successful purge, something must have gone terribly wrong, or there are still packages lying around. The latter is bound to be the case, as nowadays nginx is not a single package anymore, and you need to remove several packages:



$apt-cache search nginx | grep ^nginx | awk ' { print $1 } '
nginx-common
nginx-doc
nginx-extras
nginx-extras-dbg
nginx-full
nginx-full-dbg
nginx-light
nginx-light-dbg


What happened is that nginx went from having a single package to multiple ones. You may list the nginx packages you have still installed:



dpkg -l  | awk ' { print $2 } '  | grep ^nginx


As you updated the post with the nginx packages that you still have, I do recommend doing:



dpkg --purge nginx-common nginx-full


For a future reference, you can check the available packages at:



https://packages.debian.org/jessie/nginx





share|improve this answer























  • It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
    – Mc Kernel
    Apr 20 '17 at 8:40












  • dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
    – Mc Kernel
    Apr 20 '17 at 8:53












  • oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
    – Mc Kernel
    Apr 20 '17 at 8:55


















4














Raspbian uses systemd to manage services by default, not SysV. Hence sysv-rc-conf and chkconfig having an inconsistent behaviour.



To disable nginx upon boot do:



sudo systemctl disable nginx.service


As for having nginx files hanging around after a successful purge, something must have gone terribly wrong, or there are still packages lying around. The latter is bound to be the case, as nowadays nginx is not a single package anymore, and you need to remove several packages:



$apt-cache search nginx | grep ^nginx | awk ' { print $1 } '
nginx-common
nginx-doc
nginx-extras
nginx-extras-dbg
nginx-full
nginx-full-dbg
nginx-light
nginx-light-dbg


What happened is that nginx went from having a single package to multiple ones. You may list the nginx packages you have still installed:



dpkg -l  | awk ' { print $2 } '  | grep ^nginx


As you updated the post with the nginx packages that you still have, I do recommend doing:



dpkg --purge nginx-common nginx-full


For a future reference, you can check the available packages at:



https://packages.debian.org/jessie/nginx





share|improve this answer























  • It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
    – Mc Kernel
    Apr 20 '17 at 8:40












  • dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
    – Mc Kernel
    Apr 20 '17 at 8:53












  • oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
    – Mc Kernel
    Apr 20 '17 at 8:55
















4












4








4






Raspbian uses systemd to manage services by default, not SysV. Hence sysv-rc-conf and chkconfig having an inconsistent behaviour.



To disable nginx upon boot do:



sudo systemctl disable nginx.service


As for having nginx files hanging around after a successful purge, something must have gone terribly wrong, or there are still packages lying around. The latter is bound to be the case, as nowadays nginx is not a single package anymore, and you need to remove several packages:



$apt-cache search nginx | grep ^nginx | awk ' { print $1 } '
nginx-common
nginx-doc
nginx-extras
nginx-extras-dbg
nginx-full
nginx-full-dbg
nginx-light
nginx-light-dbg


What happened is that nginx went from having a single package to multiple ones. You may list the nginx packages you have still installed:



dpkg -l  | awk ' { print $2 } '  | grep ^nginx


As you updated the post with the nginx packages that you still have, I do recommend doing:



dpkg --purge nginx-common nginx-full


For a future reference, you can check the available packages at:



https://packages.debian.org/jessie/nginx





share|improve this answer














Raspbian uses systemd to manage services by default, not SysV. Hence sysv-rc-conf and chkconfig having an inconsistent behaviour.



To disable nginx upon boot do:



sudo systemctl disable nginx.service


As for having nginx files hanging around after a successful purge, something must have gone terribly wrong, or there are still packages lying around. The latter is bound to be the case, as nowadays nginx is not a single package anymore, and you need to remove several packages:



$apt-cache search nginx | grep ^nginx | awk ' { print $1 } '
nginx-common
nginx-doc
nginx-extras
nginx-extras-dbg
nginx-full
nginx-full-dbg
nginx-light
nginx-light-dbg


What happened is that nginx went from having a single package to multiple ones. You may list the nginx packages you have still installed:



dpkg -l  | awk ' { print $2 } '  | grep ^nginx


As you updated the post with the nginx packages that you still have, I do recommend doing:



dpkg --purge nginx-common nginx-full


For a future reference, you can check the available packages at:



https://packages.debian.org/jessie/nginx






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 17 at 10:34

























answered Apr 20 '17 at 8:35









Rui F Ribeiro

38.9k1479129




38.9k1479129












  • It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
    – Mc Kernel
    Apr 20 '17 at 8:40












  • dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
    – Mc Kernel
    Apr 20 '17 at 8:53












  • oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
    – Mc Kernel
    Apr 20 '17 at 8:55




















  • It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
    – Mc Kernel
    Apr 20 '17 at 8:40












  • dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
    – Mc Kernel
    Apr 20 '17 at 8:53












  • oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
    – Mc Kernel
    Apr 20 '17 at 8:55


















It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
– Mc Kernel
Apr 20 '17 at 8:40






It worked! Thanks :) However, why it keept running after an apt-get remove? doesn't update-rc.d neither work in raspbian?
– Mc Kernel
Apr 20 '17 at 8:40














dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
– Mc Kernel
Apr 20 '17 at 8:53






dpkg -l | grep ^nginx gives me no output, but removing the exponent character it returns two results (post updated). Is it how should it be?
– Mc Kernel
Apr 20 '17 at 8:53














oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
– Mc Kernel
Apr 20 '17 at 8:55






oh right, I still having nginx-common and nginx-full atm, uninstalling... and done, it's actually removed now, thanks again! :)
– Mc Kernel
Apr 20 '17 at 8:55




















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f360115%2fcant-uninstall-or-disable-nginx%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre