我的shell bash给了我一个bash : ... : command not found错误,我不知道如何开始解决它。我也不知道巫婆标签应该选择除了"bash“"Debian”。
我是根,这两个程序也已经安装好了。操作系统是Debian和新安装的。在安装过程中,我取消了Tasksel配置步骤中的所有选项。我认为更多的链接到我的Shell.Later,我用来安装漂亮的瓷砖窗口。
在这里,我的路的输出:root@machine:~# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
这里有两个例子:首先,我试图运行这个程序。第二,我检查程序是否已安装。
root@machine:~# modprobe --verbose
bash: modprobe: command not found
root@adrien:~# apt-get install kmod
Reading package lists...
Done Building dependency tree
Reading state information...
Done kmod is already the newest version (26-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@machine:~# openvpn
bash: openvpn: command not found
root@adrien:~# apt-get install openvpn
Reading package lists... Done Building dependency tree
Reading state information...
Done openvpn is already the newest version (2.4.7-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.发布于 2020-03-12 21:09:59
按以下方式编辑/etc/profile (前6行):
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH然后重新启动你的系统。
https://unix.stackexchange.com/questions/572429
复制相似问题