How do I ripen unripe oranges and grapefruits?
You don't.

Citrus fruits, unlike most other fruits, do not ripen after being picked from the tree.

The only solution is to be proactive and not buy unripe citrus.