Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash 使用随apt get安装的软件包时未找到命令_Bash_Debian_Package_Apt Get - Fatal编程技术网

Bash 使用随apt get安装的软件包时未找到命令

Bash 使用随apt get安装的软件包时未找到命令,bash,debian,package,apt-get,Bash,Debian,Package,Apt Get,我已经习惯了,但是今天我被一些很简单的事情困住了。我在Debian 8虚拟机上,需要使用gethostip。因为这是我所做的工作的一部分: $ sudo apt-get install syslinux $ gethostip -d localhost 但是,它返回我bash:gethostip:command-notfound。我还尝试了哪个gethostip来查找包,但它没有返回任何内容 我应该怎么做才能使它工作?gethostip不是syslinux二进制软件包的一部分 Debian选择

我已经习惯了,但是今天我被一些很简单的事情困住了。我在Debian 8虚拟机上,需要使用
gethostip
。因为这是我所做的工作的一部分:

$ sudo apt-get install syslinux
$ gethostip -d localhost
但是,它返回我
bash:gethostip:command-notfound
。我还尝试了
哪个gethostip
来查找包,但它没有返回任何内容

我应该怎么做才能使它工作?

gethostip
不是
syslinux
二进制软件包的一部分

Debian选择将syslinux(源程序包)拆分为多个二进制(=可安装)程序包,以允许人员/依赖项只安装他们需要的组件。例如,如果您不想制作可引导CD,则很可能不需要
isolinux
软件包

包含
/usr/bin/gethostip
的包称为
syslinux-utils

您可以使用查找安装给定文件的软件包


或者,您也可以安装,当您在cmdline上键入未知命令时,它会建议您安装哪个软件包。

哦,是的,我也尝试过,但没有在命令中说明,没有显示任何内容。另外,请查看
dpkg-S gethostip
(并尝试运行
/usr/bin/gethostip
)。它返回
dpkg查询:没有找到匹配模式的路径*gethostip*
好,那么它似乎没有安装。奇怪的是,我正在做的
sudo apt get install syslinux
再次返回
syslinux已经是最新版本了。