Hi!
Postgres version 12 pg_dump probably cannot installed in old server (Debian Squeeze 9).
I have it installed on my Debian 9 laptop, from the PostgreSQL apt repo:
https://apt.postgresql.org
Oled server uses Debian Sqeeze whose version is 6. I mistakenly typed Debian Squeeze 9, I'm sorry. Andrus.