Удалите все пакеты nginx
sudo apt-get autoremove nginx sudo apt-get purge nginx
Это работает для меня
sudo service apache2 restart