Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-02-2007, 12:23 AM   #1
LQ Newbie
Registered: Jul 2007
Location: Bangalore
Posts: 25

Rep: Reputation: 15
/usr/sbin/sudo: line 1: root: command not found

i am trying to install VMWARE.

it is asking for What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

i tried to give /usr/include/ i get following error message

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are
you sure that /usr/include contains the header files associated with your
running kernel? [no]

from this it mean that i need to install kernel-source packages
i ran
1>uname -r output:-2.6.19-1.2911.fc6

2>sudo apt-get install linux-headers-`uname -r`
at this point of time i am getting error as >>/usr/sbin/sudo: line 1: root: command not found

please anybody help me on this
Old 08-02-2007, 01:48 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Have you tried using sudo apt-get install linux-headers=2.6.19-1.2911.fc6 instead of sudoo apt-get install linux-headers-`uname -r`?

Do you get the same result?
Old 08-02-2007, 07:14 AM   #3
LQ Newbie
Registered: Jul 2007
Location: Bangalore
Posts: 25

Original Poster
Rep: Reputation: 15

i ran the command sudo apt-get install linux-headers=2.6.19-1.2911.fc6

still it is giving error /usr/sbin/sudo: line 1: root: command not found

my sudo file contents is

root ALL=NOPASSWD:/bin/rpm ,/opt/ltib/usr/bin/rpm

even i tried with
root ALL=(ALL) ALL

for this also i am geting same error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What is difference between /usr/sbin/ps & /usr/ucb/ps command rajaniyer123 Solaris / OpenSolaris 6 07-05-2007 12:53 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
ps -aux ---> /usr/sbin/sendmail -i -FCronDaemon -oem root ?? PDASquare Linux - General 2 03-29-2006 09:22 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
As root, not seeing /sbin and /usr/sbin in path weghman Linux - Newbie 3 04-25-2004 01:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

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