Maybe you are missing some
packages in your Ubuntu 16?
what about this steps from the documentation wiki
Install Java (if not already installed)
Because tomcat and solr are Java based softwares we need the Java environment (As it is advised in the Solr wiki : prefere a full JDK to a simple JRE.)
$ sudo apt-get install openjdk-6-jdk
Note : Working on Amazon EC2 instance, I had to upgrade temporarly my “micro” instance to “medium”, because of special memory needs during java’s installation.
Install Tomcat & Solr (You can’t avoid this one)
For ubuntu (tested with 10.4 LTS), there is an unique package to install, it will take care of installing both Tomcat & Solr, plus the integration of Solr in Tomcat.
$ sudo apt-get install solr-tomcat
then let’s start the server
$ sudo service tomcat6 start
Ok it is done !
Solr server responds at http://localhost:8080/solr
and the config & index will be stored at : /usr/share/solr/
In order to use it with Sunspot you’ll have to copy conf/schema.xml & conf/solrconfig.xml from your application to /usr/share/solr/ or /usr/share/solr/conf (Ubuntu 12.04).
But, indeed, you should read the tutorial further to understand why you shouldn’t use Solr directly.
For now your data are stored in a folder of your system not dedicated to a specific user or application.
It is quite common to read that a public server should use a dedicated user account with constraint privileges. (internet is full of it)
If like me your not totaly happy with it, follow the next steps to customize the whole thing. I won’t explain you how to start Tomcat as another user (Google it), but how to choose your Solr home directory