I found the solution to this issue here: https://www.serveradminblog.com/2023/03/the-repository-does-not-have-a-release-file-pgadmin4-on-mint-linux/.