Upgraded from Ubuntu 20.04 to 22.04 and upgraded php from 7.4 to 8.1. Phpmyadmin on localhost apache2 was working fine before (v5.0.3 from Oct 2020) but now I get a load of errors on the login page. eg:
Deprecation Notice in ./vendor/twig/twig/src/Loader/FilesystemLoader.php#40
realpath(): Passing null to parameter #1 ($path) of type string is deprecated
which looks like its barfing at php8.1, and then if I try to login I get a page saying "The page not working right now"
When I run sudo apt-get remove phpmyadmin it reports "Package phpmyadmin is not installed, so not removed" which is unhelpful as it is still installed and exists in /usr/share/phpmyadmin and the apache2 config file is enabled.
So how does one remove it - will simply deleting the /usr/share/phpmyadmin folder and disabling the phpmyadmin.conf in apache2 to work, or will it leave other stuff behind in the mysql (mariabd) database that will mess up a re-install with the latest version?
Or can I simply install the latest version over the top of the existing 5.0.3?
And as a secondary question what has gone wrong here? - it seems that apt has forgotten it has phpmyadmin installed during the 20.04->22.04 update.