E:The repository 'http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release' does not have a Release file
I think this error appeared since the PostgreSQL repo doesn't have a release for "tessa".
Two solutions:
- Edit the "/etc/apt/sources.list.d/pgdg.list" file (or another list file contains "http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release") and change "tessa" to one of the version name supported by PostgreSQL (here is the list: https://apt.postgresql.org/pub/repos/apt/dists/).
- Simply delete "/etc/apt/sources.list.d/pgdg.list" or remove the line "http://apt.postgresql.org/pub/repos/apt tessa-pgdg Release" in other file if you are not using PostgreSQL.
Here $(lsb_release -cs) returns terra and this doesn't work in many distributions. Use bionic instead, it should work
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bionic pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
And then finally install pgadmin:
sudo apt install pgadmin4
Enjoy!