'Ubuntu: gedit' not found, but can be installed with [closed]

I am trying to install Valgrind on my windows 10. I am using Ubuntu and was able to install valgrind smoothly. However, when trying to set the path using the command: gedit .bashrc I am getting the error:

Command 'gedit' not found, but can be installed with:

sudo apt install gedit

So I did install gedit and reload the command window and run this again: gedit .bashrc but I keep getting the same error. Any ideas how to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source