Hello
There is a command to install postgresql on the download page of the
official site,
If I do not add sudo, an error occured.
It may be better to add sudo before the command.
download page
https://www.postgresql.org/download/linux/ubuntu/
command
before: apt-get install postgresql-9.4
↓
after: sudo apt-get install postgresql-9.4
Thanks