Shell from meterpreter not responding to Commands

Meterpreter session was created, framework latest. Victim machine: Ubuntu

Screenshot of Error:

enter image description here

I am pretty sure the commands used to work before on the same machine. Shell commands are not working after giving shell in meterpreter. All meterpreter command works fine though.