I have upgraded pgAdmin4 from version 6.7 to 9.2 on Ubuntu 20.04. However, when I access pgAdmin4 from the browser (https//127.0.0.1/pgadmin4) it still opens version 6.7. I followed the steps below to perform the upgrade "
dpkg: warning: unable to delete old directory '/var/lib/ubuntu-advantage': Directory not empty dpkg: warning: unable to delete old directory '/etc/ubuntu-advantage': Directory not empty
dpkg: warning: unable to delete old directory '/var/lib/fwupd': Directory not empty
sudo /usr/pgadmin4/bin/setup-web.sh
Setting up pgAdmin 4 in web mode on a Debian based platform... Creating configuration database... pgAdmin 4 - Application Initialisation ======================================
Creating storage and log directories... We can now configure the Apache Web server for you. This involves enabling the wsgi module and configuring the pgAdmin 4 application to mount at /pgadmin4. Do you wish to continue (y/n)? y The Apache web server is running and must be restarted for the pgAdmin 4 installation to complete. Continue (y/n)? y Apache successfully restarted. You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4 ubuntu@ip-10-28-0-38:~$
Verification:
apt list --installed | grep pgadmin4
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.