After uninstalling a program with apt and reinstalling it in another location (ex. pypy with snap), running the program from command line reports bash: /usr/bin/pypy: No such file or directory, but which pypy correctly gives /snap/bin/pypy. How do I get the shell to recognize the new installation location?
Asked
Active
Viewed 447 times
2
qwr
- 2,692
- 23
- 39
1 Answers
3
Use hash -r. See What does hash -r command do?
Alternatively restart the shell with exec bash.
qwr
- 2,692
- 23
- 39