Meterpreter session was created, framework latest. Victim machine: Ubuntu
Screenshot of Error:
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.