Ubuntu is the most excellent linux system for raspberry pi2. The software update is very quickly.
Currently, there is no raspi-config command for raspberry configuration at version15.04, but it will come out in the near future version.
Without raspi-config, we can manually config it easily. Just modify the file /boot/firmware/config.txt is enough.
Just add a line "start_x=1" at the bottom of the file config.txt, save it, and reboot the system.
At the terminal, input command "sudo raspistill -o test.jpg", it will work.
edit your /boot/config.txt file and make sure the following lines look like this:
start_x=1 # essential
gpu_mem=128 # at least, or maybe more if you wish
disable_camera_led=1 # optional, if you don't want the led to glow
reboot