Skip to content

Instantly share code, notes, and snippets.

@ChinmayPatel
Forked from teodorpatras/scala.sh
Last active December 8, 2016 17:26
Show Gist options
  • Save ChinmayPatel/1f8ef1add9d34d20dd078ea0f61eac70 to your computer and use it in GitHub Desktop.
Save ChinmayPatel/1f8ef1add9d34d20dd078ea0f61eac70 to your computer and use it in GitHub Desktop.
Install Scala and SBT Using `apt-get` on Ubuntu 16.04 (May Work For Other Ubuntu)
## updated for Ubuntu 16.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get remove scala-library scala # Removing scala-library was the key for me.
sudo wget www.scala-lang.org/files/archive/scala-2.11.8.deb
sudo dpkg -i scala-2.11.8.deb
sudo apt-get update
sudo apt-get install scala
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment