# Remove the existing scala in your system
sudo apt-get remove scala-library scala
# Download and install scala-2.12.4
wget www.scala-lang.org/files/archive/scala-2.12.4.deb
sudo dpkg -i scala-2.12.4.deb
sudo apt-get update
sudo apt-get install scala
# Download and install the latest sbt
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
网友评论