LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-16-2017, 01:19 AM   #1
kksharma
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
Question Showing error "/usr/bin/openvas-start: line 3: service: command not found" while installing openvas


How to fix these errors please help me

kk@intkolfs01:~$ openvas-start
Starting OpenVas Services
/usr/bin/openvas-start: line 3: service: command not found
/usr/bin/openvas-start: line 4: service: command not found
/usr/bin/openvas-start: line 5: service: command not found


Above error showing every time while im trying to open openvas, please help me ASAP.

Thank you,
 
Old 08-16-2017, 07:57 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Which Linux distribution and version are you using?

The message is quite clear. It is trying to use the command "service" but can't find that command.

The "service" command is used in RedHat derived distributions such as RHEL, CentOS, Fedora, etc... for starting init scripts found in /etc/init.d and linked to run level directories /etc/rc1.d, /etc/rc2.d, /etc/rc3.d etc....

Later versions such as RHEL7/CentOS7 use systemd rather than standard init so have a preference for using systemctl over service but there has to be systemd file for it to do that. The "service" command still exists and can start some things.

Your error could be because of one of the following:
-You're not using a distribution that has the "service" command in which case you can usually start by executing the init script directly with the "start" flag.
-Your PATH variable doesn't include the directory where the service command is found. You can can run "find / -name service" to see where it is (if it is there).
-You're not running as root so don't have permission to execute the service command.

You really need to look at the requirements for the softwarre you're installing to see whether it is actually packaged to run on your distribution and version. Often you can find other packages that are designed for your distro/version.

Last edited by MensaWater; 08-16-2017 at 08:05 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVAS command line target creation doctorstrange Linux - Security 3 08-08-2017 03:55 PM
OpenVAS command line interface -- creating new scans doctorstrange Linux - Security 1 07-28-2017 08:26 AM
Errors installing wine to Ubuntu 12.04 "Sub-process /usr/bin/dpkg returned an error" dapurplesharpie Linux - Software 2 06-26-2012 07:07 PM
Openvas-manager & openvas-cli Minky Linux - Software 1 04-26-2010 06:59 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration