When I try to get the manpages with man
it seems to display nothing and behaves as though I just pressed enter
~$ man ls
~$ man man
I have tried solutions from these pages to no avail
question1 question2. This last question matches my condition exactly but the fixes doesn't seem to work. Although info
seems to work.
Here are some additional information:
~$ man --version
man 2.7.6.1
~$ type -p man
/usr/bin/man
~$ type -t man
file
~$ manpath
/home/abhilash/anaconda3/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/lib/jvm/java-8-oracle/man
~$ uname -a
Linux abhilash-ThinkPad-T440 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
UPDATE
~$ type -a man
man is /usr/bin/man
~$ env | grep 'PAGER\|^MAN'
~$
UPDATE 2
~$ ls -1 /usr/share/man/man1 | wc -l
2145
~$ ls -l "$(type -p pager)"
lrwxrwxrwx 1 abhilash abhilash 18 Apr 16 18:43 /home/abhilash/anaconda3/bin/pager -> ../lib/R/bin/pager
~$ ls -l "$(readlink "$(type -p pager)")"
ls: cannot access '../lib/R/bin/pager': No such file or directory
Turns out, after the anaconda installation or some package installation through conda, the default pager is re-written. The exact cause of this is unknown. Just some more information
My strongest guess is that rpy2 installation had this effect of changing the pager information given the time of events.
But these are the steps I took to solve the issue.
Ensure that the pager defaults to the one that came with man-db by typing the following to confirm
This solution was arrived at after going through this link in an attempt to set the pager to default.
Thanks to glenn and terdon for their inputs in solving this issue.