Install whois

How can I install “whois” command in OSMC? Tried with apt-get but without success - it seems installed. Later I get “bash: whois: command not found”.

$ sudo apt install whois
$ whois --version
Version 5.2.17.

Report bugs to <>.

Works fine for me.

It could be a failing SD card.

The SD card is fine. I can install other programs. The result from “sudo apt install whois” is:

dpkg: warning: ‘ldconfig’ not found in PATH or not executable
dpkg: warning: ‘start-stop-daemon’ not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root’s PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)

Sorry, but it doesn’t look fine from those errors! Either the SD card is failing or you have a corrupted filesystem.


Finally, I found the problem or at least the reason for failed installation. Something is wrong with my PATH. When logged with “osmc” (root), the installation was normal. Maybe my switch from user to osmc is wrong - I made it with “su osmc”.


You have a corrupt file system and probably a failed sd card. Back your settings and do a fresh a install and I would advise doing so to a new SD card.

Thanks Tom.

Try su - osmc

Or… just never login as root, I’ve been a user since the early Raspbmc days and never done this.