I am trying to install Discourse on Ubuntu BUT it's not working

The problem is just as described. If this is your home computer then it’s likely a firewall problem. You need to make sure that incoming connections to ports 80 and 443 get to your computer.