To install Scala on Ubuntu, you get it either using.
sudo apt-get install scala
or if you want to get the latest stable Scala release, here are the steps:
First, install Sun Java
Second, install Scala
Download the latest Scala package, on scala-lang.org here.
wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz
Uncompress it to /opt/
.
tar -C /opt/ -xvzf scala-2.11.7.tgz
Add Scala to your $PATH by adding this line to .profile or .bashrc or .zshrc inside your home directory.
PATH="$PATH:/opt/scala-2.11.7/bin"
Restart Ubuntu, start a terminal window and type to see you have successfully installed it.
scala -version