Remove the old Java version sudo apt-get purge openjdk*Ĭheck if we have the latest version of Java: java -version Sudo apt-get install oracle-java8-set-default Sudo apt-get install oracle-java8-installer Install the latest version of Java 8 sudo apt-get update First remove the OpenJDK: sudo apt-get purge openjdk*Īdd a digital key so we can authorize the repository sudo apt-key adv -recv-key -keyserver EEA14886Īdd the packet source sudo vim /etc/apt/sources.list Login to your PI with Putty or your preferred CLI (command-line interface) tool.
So we need to add the correct repository manually to update Java.
The problem is that the latest versions of Java aren’t available in the default repositories for Raspbian. So in this article, I am going to explain how you can update the Raspberry Pi Java version. Rasbian is shipped with an outdated version of Java and for the Unifi Controller, we need at least version 1.8.0_201. All I got was a blank screen 🙁Īfter some digging around I noticed that Java needed to be updated. I couldn’t log in anymore on my Unifi Controller after updating the controller on my Raspberry Pi to version 5.10.12.