# Problem installing Ubuntu 11

**URL:** <https://forum.inductiveautomation.com/t/problem-installing-ubuntu-11/3332>\
**Category:** General Discussion\
**Created:** [September 25, 2011, 8:44pm UTC](https://forum.inductiveautomation.com/t/problem-installing-ubuntu-11/3332 "2011-09-25T20:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanbrunet](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@alanbrunet](https://forum.inductiveautomation.com/u/alanbrunet)\
**Post date:** [September 25, 2011, 8:44pm UTC](https://forum.inductiveautomation.com/t/problem-installing-ubuntu-11/3332/1 "2011-09-25T20:44:12Z")

</div>

Java 6 would not install from  
apt-get install sun-java6-jre  
“package sun-java6-jre is not available”

I found some help on a ubuntu form Happy-coding:

sudo add-apt-repository “deb [archive.canonical.com/](http://archive.canonical.com/) lucid partner”

that fixed it.

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [September 26, 2011, 1:57pm UTC](https://forum.inductiveautomation.com/t/problem-installing-ubuntu-11/3332/2 "2011-09-26T13:57:10Z")

</div>

Just to expand on this the `sun-java6-jre` package is not available from the main repository because of how the licensing is laid out by Oracle. To get the Sun Java environment you need to add the `partner` repository.

You can do this by using `add-apt-repository` to add the `partner` repository  
[ul]  
[li] `sudo add-apt-repository "deb [archive.canonical.com/](http://archive.canonical.com/) lucid partner"` for 10.4 LTS[/li]  
[li] `sudo add-apt-repository "deb [archive.canonical.com/](http://archive.canonical.com/) maverick partner"` for 10.10[/li]  
[li] `sudo add-apt-repository "deb [archive.canonical.com/](http://archive.canonical.com/) natty partner"` for 11.04[/li][/ul]  
or  
[ul]  
[li] uncommenting the `partner` repository in the file `/etc/apt/sources.list`[/li][/ul]
