# mbr-install
bash: mbr-install: command not found
# apt install mbr-install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mbr-install
# mbr
bash: mbr: command not found
# apt install mbr
Reading package lists... Done
Building dependency tree
Reading state information... Done
mbr is already the newest version (1.2.1).
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
# mbr
bash: mbr: command not found
我不明白。我安装了软件包mbr
(也是的软件包mbr-install
),但是当我尝试执行它时。然后 bash 找不到它。
# echo $PATH
/home/user123/perl5/bin:/sbin:/home/user123/Desktop/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
应该/sbin
在哪里安装它。有人知道为什么即使安装了包也找不到命令吗?
答案1
我推荐这个过程(我猜你是用 root 来做的,对吧?):步骤 1:检查文件系统上是否存在可执行文件。使用updatedb
更新位置数据库,然后执行locate mbr
步骤 2:找到后,尝试使用其完整路径启动它。如果被拒绝,错误会显示错误所在。