Hey. Follow these steps to install Spark on Ubuntu:
Go to this link and download Spark:
https://spark.apache.org/downloads.html
Then open terminal and extract the files:
$ cd Downloads
$ tar -xvf spark-2.3.3-bin-hadoop2.7.tgz
Now the Spark directory will be extracted.
Next, go to the bin directory in the spark directory:
$ cd spark-2.3.3-bin-hadoop2.7/bin/
And to start spark shell, run the following command:
$ ./spark-shell
This will start the Spark shell where you can run spark commands.
(You might get some warnings, ignore them.)