Installing Java 7 on ubuntu 12.10 (fixed)

Posted on Saturday, August 17, 2013


I recently had an issue with my guide on getting Oracle's Java 7 installed on Ubuntu 12.10.   sudo apt-get install python-software-properties no longer seems to add the "add-apt-repository" command line tool.  Instead you need to use sudo apt-get install software-properties-common.   Michal mentioned this change at http://linuxg.net/how-to-fix-error-sudo-add-apt-repository-command-not-found/ [1] in a comment.


Here are the commands to install Java 7 from Ubuntu 12.04 server.



>  sudo apt-get purge openjdk*
>  sudo apt-get install software-properties-common
>  sudo add-apt-repository ppa:webupd8team/java
>  sudo apt-get update
>  sudo apt-get install oracle-java7-installer
>  java -version


.




References
[1]  How to Fix Error sudo: add-apt-repository: command not found
       Visited 1/2013




No comments:

Post a Comment