What does "Ach du Lieber" mean?

I know it is a German exclimation, but I am interested in the literal and idiomatic meaning, and why it means what it means.

Thanks!
13 answers 13