First, we'll install some required packages and then we'll manually install the latest version of Solr from the Apache Solr site:
Install required packages. First, use
apt-get
to ensure you have thepython-software-properties
package available. This will allow you to add a new package repository:$ sudo apt-get install python-software-properties
Now, add the unofficial Java installer repository:
$ sudo add-apt-repository ppa:webupd8team/java
Confirm that you want to add this repository when prompted and then update the list of source packages:
$ sudo apt-get update
We can now install the Oracle Java JDK Version 8:
$ sudo apt-get install oracle-java8-installer
This is an Oracle package and you will have to agree to the license terms in order to proceed. Just press Enter when prompted.
Run the Apache Solr installer. Now that we have the Java JDK installed, we can install the latest version of Apache Solr. Go to the list of mirrors available...