Você também pode tentar executando o seguinte comando:
-
Obtenha a lista de todos os pacotes Nginx instalados
dpkg -l | grep nginx
-
Remova todos os pacotes do nginx executando o seguinte comando:
apt-get --purge autoremove nginx-*
ou
apt-get --purge autoremove <packages listed in ouput of 1>
Os comandos acima irão remover todas as dependências do Nginx. Além disso, verifique se /var/lib/nginx
e /etc/nginx
são excluídos ou não. Se não for removido, removeu os diretórios executando o seguinte comando:
rm -rf /var/lib/nginx /etc/nginx