Fix Python 3.12 Segmentation fault (Core dumped) in Ubuntu

Firefly A beautiful bug sitting on a Python, looking at the camera curiously. 20118

The user experienced a 'Segmentation fault (Core dumped)' error after installing and running Python 3.12 in Ubuntu. The problem was Python's standard library 'readline' crashing. The issue was resolved by installing libreadline-dev and recompiling Python 3.12 from the source.