Install libreadline7 by entering the following commands in the terminal:
sudo apt update sudo apt install libreadline7
GNU readline and history libraries, run-time libraries
The GNU readline library aids in the consistency of user interface across discrete programs that need to provide a command line interface. . The GNU history library provides a consistent user interface for recalling lines of previously typed input.