We just upgraded our PostgreSQL servers to v13. We heavily use pg_dump on Ubuntu 18 systems to transfer data between databases. After upgrading the servers, pg_dump would complain about a version mismatch.
Easy enough, I installed the postgres-client-13 from the Apt Postgres repo (http://apt.postgresql.org/pub/repos/ap). pg_dump would still complain about a version mismatch so I uninstalled postgresql-client-11. After that pg_dump would complain that "PostgreSQL version 11 is not installed".
No amount or ordering of reinstalling and removing PostgreSQL clients clears up this error. Can anyone point me in the right direction to solving this issue?