1.I'm sorry to hear that.

2. That's too bad.
3. What a pity!
4. What a shame!
5. That's a pity.
6. That's a shame.
==============
Are they all the same in meaning? Which ones are commonly used?

All are fine, and I hear all of them at one time or another.