Score:0

apt-get remove says nginx not installed, but it is still running

cn flag

I sudo apt-get install nginx by mistake on a server already running Apache.

I then sudo apt-get remove nginx and rebooted. I lost the output of that and can't remember if it was installed successfully. If I tried that again, it says "Package 'nginx' is not installed so not removed."

However, if I now run sudo nginx -t it says "test is successful". And which nginx shows /usr/sbin/nginx.

What is the real status? How do I properly uninstall nginx?

DankyNanky avatar
tt flag
You might also want to read [Unable to uninstall package with error "Unable to locate package"](https://askubuntu.com/a/1078550/212930)
DankyNanky avatar
tt flag
Also, [Cannot remove NGINX](https://askubuntu.com/questions/457040/cannot-remove-nginx) seems applicable here.
David avatar
cn flag
To uninstall any app you use the revers command used to install it. Apt get install is apt get remove, snap install is snap remove for example.
Old Geezer avatar
cn flag
The referenced link: `apt-get remove --purge nginx*` did the trick.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.