Команду не удалось найти, так как '/bin:/usr/bin' не включен в переменную окружения PATH

Я установил Ubuntu 20.04.3 lts и установил anaconda3, мне пришлось удалить anaconda3, так как у меня возникла проблема, просто набрав эту команду # rm -f anaconda3 из корня и каталога /home/user. После этого я столкнулся с проблемой, описанной ниже

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# 

, и в последних нескольких строках моего .bashrc

# >>> 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 <<<

кто-нибудь может подсказать, что делать дальше?

3
задан 24 October 2021 в 14:24

0 ответов

Другие вопросы по тегам:

Похожие вопросы: