Another way to look at a mechanical failure (or injury) on a tour is that it now becomes an adventure, and isn't that why you're out there? Some kind soul will pick you up, bring you to the village where some kid knows English, and you'll have end up with great story. "Adventure is what happens when things go wrong."
That said, it's also valuable to be able to do your own repairs, and all the above advice is good.