I fly a lot for work. Every week, someone gives me a demonstration of what to do when this happens.
You don't die instantaneously when exposed to vacuum, although it is pretty quick. I wonder if it would be possible to repressurize the tube (by blowing a big hole in it?) within 15 seconds or so.
It's definitely the most unlikely of Elon Musk's plans.
Less air than expected inside the vehicle could be life-threatening for breathers. For humans we could solve this with an emergency oxygen hose at every seat like in planes. Pets and other oxygen dependant lifeforms wouldn't be protected by this system though. An alternative could be to have an electronic hatch at regular distances in the tunnel. So when a vehicle detects a massive oxygen leak inside the cabin, it could signal the nearby tunnel hatch to open. The whole tunnel, and thus also the vehicle [1] would fill with air pretty fast.
--
[1] The vehicle would have a large hole in order for oxygen levels to suddenly go from life-sustaining to not. Thus that same hole would serve to refill the vehicle with oxygen coming from the tunnel hatch. However there could be an additional hatch for the vehicle to guarantee airflow. This could maybe even mount directly to a tunnel hatch, so that outside air would come to the vehicle and skip the tunnel.
Doesn't this sound like a maintenance nightmare? I'm not clear on a couple of things. What happens when the vacuum fails? What happens to passengers if the seal fails on the vehicle, and then all the air is sucked into the vacuum? Maintaining long tunnels is by itself hard, but it seems like maintaining long tunnels that also need to maintain a vacuum would be that much more complex.
I don't see much discussion on this aspect of the hyperloop.