This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04
The current default Ubuntu apt repositories (up to 02.05.2018) only have up to postgresql-9.5. To get 10, we'll add the official postgres apt repository.
- Ubuntu 16.04:
sudo add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'