I had this issue on Ubuntu 25, and running this was able to fix the issue for me:
sudo update-alternatives --install /usr/bin/stty stty /usr/bin/gnustty 100