Ryan Hall's picture

Like the title says...  I'm trying to install Java 8

It's required for Forge to work.

I try the following command: <pre>add-apt-repository ppa:webupd8team/java</pre>

I receive the following <pre>-bash: add-apt-repository: command not found</pre>

I looked online and it said I need to run the following command to get the add-apt-repository command:
<pre>apt-get install software-properties-common python-software-properties</pre>

Which returns:
<pre>Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package software-properties-common
E: Unable to locate package python-software-properties
</pre>

At this point I'm stuck.  I do not know what I am missing.  I just need to install Java 8 and make it the default so I can run minecraft.

Thanks,
Ryan

 

Forum: 
Tags: 
Jeremy Davis's picture

If this is a fresh server and you skipped the security updates on firstboot, then you'll need to update the list of available packages via 'apt-get update' first (to save space we clear the package cache at build time). After that it should install ok.

Alternatively, you could add the repo manually (rather than using 'add-apt-repository'). E.g. something like this.

Add new comment