It might be happening that the alternator is stuck; you can try removing the bandage. Repair or buy a new alternator and it should start without any problems.
I recently just did a stereo upgrade from factory system to aftermarket pioneer Bluetooth MP3 and I'm not sure if this has anything to do with it but after doing so my car all of a sudden won't stay on after starting it it just stalls out right away every single time I will check the fuses they are all good I've cleaned out the air intake of any fluid I just don't quite understand what the issue is I understand the mass airflow sensor could be the issue but I would like to get somebody else's opinion