Raspberry PI Cam pictures blue

raspistill -o cam.jpg
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

If you try to get your RPI Cam work and get only images where the black color is blue you can try to update the RPI firmware and reboot:

sudo apt update && sudo apt upgrade
sudo rpi-update
sudo reboot

Now everything should work nicely.