To install SBT on Ubuntu first you need to make sure Java 8 jdk is installed or not, to install java 8 jdk in your OS use this command in your terminal:
sudo apt-get install openjdk-8-jdk
Next, you should check your Java is installed or not in your system, to check which version of Java is installed in your system check with this command:
If not installed then you can follow this: https://www.edureka.co/community/39741/install-java-on-ubuntu?show=39741#q39741
After you are done with the Java installation you can install Scala with the help of this command in your terminal:
It will install Scala in your system and check to Scala has installed in your Ubuntu use this command:
This will show which version of Scala you are using.
Now to install SBT you need to use this command in your terminal:
sudo yum install sbt
After installing you need to create a directory for SBT where the project will be created, for that you need to use this command:
Inside sbt_project you need to give sbt (which will download will the necessary files for sbt)
Once you see sbt: sbt_project command prompt in your terminal, that means your SBT has installed properly.
Hope it helps.