I installed Oracle Java using this wikihow tutorial
This method involves removing OpenJDK, downloading a tarball, uncompressing it, and moving the binaries to system directories. This means that the application is unknown to dpkg
and not found by any apt
command or other package manager.
I tried the solutions in Uninstall Oracle JRE installed from tarball but they do not work for my case, for the reasons explained above.