I have just upgraded a laptop from Ubuntu 18.04 -> 20.04 -> 22.04 and am having problems getting pgAmin4 installed. I followed the steps at https://www.pgadmin.org/download/pgadmin-4-apt/ adding the repo and then 'apt update', 'apt install pgadmin4' but my /usr/pgadmin4/bin/ directory contains only 'setup-web.sh' and nothing else. 'apt search' lists pgadmin4 as being installed. I've done 'apt remove' and 'apt install' trying to install just pgadmin4 and pgadmin4-destop.
I did do 'apt remove pgadmin4' before trying to install the first time around, but I did not delete any pgadmin4 files or directories in my home directory that were from the Ubuntu 18.04 installation.
I realize that my problems may be more in the apt realm than the pgadmin realm but I figured I start by seeking advice here first.
The pgadmin4 package is really just a "meta" package that includes various sub-packages which contain all the real goodness. Try doing the following to remove everything:
Next, edit /etc/apt/sources.list.d/pgadmin4.list and make sure the repo path has the correct codename in it for your updated release (e.g. jammy for 22.04).
Finally, run "apt update" and then try re-installing.