Are you logged in as root? If so, then you do not need sudo .
If not, then the contents of /root/.bashrc does not matter, since the sudo gets its path from the environment in which it runs. In other words, it copies your path at the user level. Instead, edit the path in your .bashrc user.
Benjamin geiger
source share