Q:

install spark with ubuntu

I want to create a virtual machine using VirtualBox, and then install Spark on the virtual Machine. 
I created the Ubuntu machine using Cloudera's VM that made available for udacity. 
After creating the virtual machine, VM is running perfect. I checked the java version, it is 1.6. 
Then, I downloaded Spark and tried to run the pyshell, but following is the error give : spark error
I searched online for this error, and some people suggested that it might be because Java version, and I should use Java 1.7 for Spark. So, I tried to install Java 1.7, but following is the error I got: 

Does anyone know what is wrong with this ? If java is the real problem, how should i install the correct version of java ? 
Thank you a lot ! I would really appreciate if someone can point out for me , thanks ! 

A:

Cloudera VMs aren't build on Ubuntu but CentOS. You need to use yum install to install packages. 

