I just installed Ubuntu 18.04.4 LTS on Windows under Windows Subsystem For Linux (WSL). When I run a command that doesn't exist in my bash terminal (for example if I accidentally add an extra s to
ls), I get this error:
$ lss -bash: /usr/bin/python: No such file or directory
The error's right, I only have python3 installed:
$ ls /usr/bin/python* /usr/bin/python3 /usr/bin/python3-jsonpatch /usr/bin/python3-jsonschema /usr/bin/python3.6m /usr/bin/python3-jsondiff /usr/bin/python3-jsonpointer /usr/bin/python3.6 /usr/bin/python3m
From previous use of Ubuntu, I remember that the message should be "The program 'lss' can be found in the following packages:" I don't need that message anymore and I don't want to install python2 just to get it working (this question has answers for solving the problem by installing py2).
Is it possible to fix this without installing python2, symlinking python 3 as 2, or becoming perfect and never making typos again?
Ideally, I could port the "command doesn't exist" script to python3 or disable it completely.