Hey. Follow these steps to install Spark on Ubuntu:
Go to this link and download Spark:
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:
This will start the Spark shell where you can run spark commands.
(You might get some warnings, ignore them.)