[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Whonix 15 service issue

Upgraded my qubes to whonix 15 today and I can no longer do service php7.1-fpm restart or service nginx stop/start

After running service nginx stop it gives the following error.

root@host:/home/user# service nginx stop
WARNING:root:could not open file ‘/etc/apt/sources.list’

Command ‘service’ is available in ‘/usr/sbin/service’
The command could not be located because ‘/usr/sbin’ is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
service: command not found
root@host:/home/user#

Not sure why it’s trying to open my sources file either can anyone help really need to be able to restart my php, nginx asap.

WhonixKid12 via Whonix Forum:

WARNING:root:could not open file ‘/etc/apt/sources.list’

Command ‘service’ is available in ‘/usr/sbin/service’
The command could not be located because ‘/usr/sbin’ is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
service: command not found

What’s talking to you there is package command-not-found. /
/usr/bin/command-not-found

Why Debian buster’s /usr/bin/command-not-found tries to open
/etc/apt/sources.list (which does not exist by default in Whonix) is
beyond me but can be safely ignored.

If you read that output carefully it tells you everything already.
Although indeed, that text isn’t optimized for usability. Complaints
should be directed at command-not-found. ->
https://www.whonix.org/wiki/Reporting_Bugs#Linux_User_Experience_versus_Commercial_Operating_Systems

Use the full path to service /usr/sbin/service, or better, fix the
PATH environment variable. I wonder how the PATH got messed up in
the first place.

Also:

Thanks Patrick fixed it using the following

export PATH="/usr/sbin:$PATH"

If anyone else comes across this issue running that command will correct it.

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]