PDA

View Full Version : [ubuntu] Where is the man command?



chiggsy
November 26th, 2008, 07:33 PM
Ok, I've run aptitude install manpages manpages-dev

when i try to run 'man aptitude'

i get

bash: man: command not found


this is really irritating! how can I install the man command?

Titan8990
November 26th, 2008, 07:42 PM
I have actually never seen a UNIX based system without man.


Post the outputs for the following:



which man



echo $PATH

chiggsy
November 26th, 2008, 08:19 PM
root@psss:~# which man
root@psss:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@psss:~#

aptitude install manpages
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

root@psss:~# man
bash: man: command not found

Keith Hedger
November 26th, 2008, 08:37 PM
I have actually never seen a UNIX based system without man.

Not helpful i know but linpus on the acer one webbook doesn't have man installed.

Just tried doing a package search using apt-file and man doesn't seem to be in any of the packages in the repos:confused: , what do you get if you try
/usr/bin/man

Titan8990
November 26th, 2008, 08:38 PM
I did find it in the repos but I am running 7.10 so lets hope that it is the same:


sudo apt-get install manpages

MJN
November 26th, 2008, 10:25 PM
manpages contains only the man(ual) pages for various system functions.

The reader, man, should be in /usr/bin/ (as a symbolic link to /usr/lib/man-db/man).

If it's not, install it with sudo apt-get install man-db

Mathew

chiggsy
November 27th, 2008, 12:06 AM
Thanks, that seems to have done it.