Score:3

The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable

br flag

I've installed ubuntu 20.04.3 lts and i installed anaconda3, i had to uninstall anaconda3 since i some problem accured by just type this command #rm -f anaconda3 from root and /home/user directory. After this i got this trouble given below,

thilipkumar@thilipkumar-Inspiron-5520:~$ sudo -s
[sudo] password for thilipkumar: 
root@thilipkumar-Inspiron-5520:/home/thilipkumar# ls
Command 'ls' is available in the following places
 * /bin/ls
 * /usr/bin/ls
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
ls: command not found
root@thilipkumar-Inspiron-5520:/home/thilipkumar# 

and in my .bashrc last few lines,

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/thilipkumar/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/thilipkumar/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/thilipkumar/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/thilipkumar/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

can anyone suggest me what to do next?

user535733 avatar
cn flag
Please show us the complete output of `echo $PATH`
JB.Thilipkumar avatar
br flag
thilipkumar@thilipkumar-Inspiron-5520:~$ echo $PATH /home/thilipkumar/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin thilipkumar@thilipkumar-Inspiron-5520:~$ sudo -s [sudo] password for thilipkumar: root@thilipkumar-Inspiron-5520:/home/thilipkumar# echo $PATH /root/anaconda3/ root@thilipkumar-Inspiron-5520:/home/thilipkumar# @user535733
Score:4
cn flag

Check the /root/.profile and /root/.bashrc files of the root user to correct where the path is wrongly set.

You also could revert these files to default by copying the respective files in /etc/skel over to /root.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.