This happened for a few reasons: 1) You didn't purge the package and as expected, this leaves files behind. 2) You installed something from source into the normal directory structure and as expected, you end up with conflicts. 3) Source package installs don't normally have uninstall options. This is normal.
Solutions: 1) Just start from scratch. I get the feeling that this isn't any sort of production machine anyway. 2) Search the entire file system for anything nginx related that you or apt installed and remove it. Then purge the installed nginx packages. You should then be in a state where installing nginx from source will work fine. 3) Learn to install source packages and use apt properly. Next time you break something and it's not a bug, use the Answers section instead. ** Changed in: nginx (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1102326 Title: package nginx-light 1.1.19-1ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1102326/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs