我不能使用命令route
:
route
bash: route: command not found
为什么找不到?(我正在使用debian 9)。
我试图以root用户身份运行它,但仍然无法正常工作。但是,它应该也可以在没有root的情况下工作。
其他诊断:
whereis route
route:
which route
(空输出)。
export PATH=$PATH:/sbin
(无输出),没有任何变化。
我已经iproute2
安装了,确保可以运行:
apt --reinstall install iproute2
“未找到命令”错误表示您没有安装命令。
使用Debian的“搜索软件包内容”页面将显示:
...
/sbin/route net-tools [not powerpc]
....
因此(假设您的CPU不是PowerPC),您应该安装该net-tools
软件包。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句