I cannot install oracle-java12-installer due to being unable to accept the license agreement through the terminal. Furthermore, I am unable to install, remove, or purge any packages without reinstalling the oracle-java12-installer. It is as if oracle's Java has locked down dpkg. How do I uninstall oracle's Java, and replace it with openJDK, given that I seemingly cannot use apt? I installed Java using the method outlined on the oracle site, then changed the oracle java to be the default java to use when I compile or run a java program.
I cannot use any apt command to install, purge, remove, or update without a message being displayed in the terminal saying that it tried to reinstall oracle-java12-installer, but could not locate the archives. Because I cannot use any apt commands without reinstalling the java installer, and I cannot install the java installer due to being unable to accept the license agreements, I cannot add the repository that i think i need to update or install the oracle-java12-installer.
There is no button to click or anywhere to type to signify that I accept the java license agreement, so I am unable to reinstall the java12 installer.
How do I get control of apt back from the oracle-java12-installer? I have successfully installed oracle's Java 12 by downloading the tar/gz file, and setting the contents to be the default whenerver I compile or run a java program.