I decided it was time to do an apt-get upgrade on my Pi server. After a lot of failures, it eventually worked, however it kept throwing up errors about "mailcap" not being in the correct format. Nonetheless, it seemed to work eventually. However, once it had finished, the terminal reverted entirely ...