首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian -“命令”命令未找到

Debian -“命令”命令未找到
EN

Unix & Linux用户
提问于 2020-03-12 00:10:13
回答 1查看 7.1K关注 0票数 1

我的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

这里有两个例子:首先,我试图运行这个程序。第二,我检查程序是否已安装。

代码语言:javascript
复制
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.
EN

回答 1

Unix & Linux用户

发布于 2020-03-12 21:09:59

按以下方式编辑/etc/profile (前6行):

代码语言:javascript
复制
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

然后重新启动你的系统。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/572429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档