Here are the installation steps on Ubuntu (this installation will also work on any Debian-based distribution):
- Open a terminal window.
- Issue the command sudo apt-get install postgresql.
- Type the sudo password necessary to give you admin rights and hit Enter.
- Allow apt to pick up any necessary dependencies.