Obtain the Postgres Version using SELECT version();
Resolving PostgreSQL pg_dump server version mismatch
The newer version of Postgres isn’t included in a lot of the Package Manager, you need to add the package repository in manually! You can find many online tutorials on this, here is one for APT package manager.