Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was starting out with git and decided to have a look at help pages. Upon typing:

git help config

I receive the following error message:

man: can't resolve /usr/share/man/man1/git-config.1.gz: No such file or directory
No manual entry for git-config
See 'man 7 undocumented' for help when manual pages are not available.

the package was built from source so I realised that the man pages were separate. I downloaded corresponding man pages in tar.gz format and tried to extract them to:

/usr/share/man/

using this command:

sudo tar -xzf git-manpages-1.8.4.3.tar.gz -C /usr/share/man

unfortunately it changes the ownership from root to user 110493 and group 5000. The git help command now reads:

man: can't resolve /usr/share/man/man1/git-config.1.gz: Permission denied
No manual entry for git-config
See 'man 7 undocumented' for help when manual pages are not available.

What can I do to finally make it work? It shouldn't take one day to install a set of manual pages.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You need to gzip them and make sure that is readable by all:

sudo chown -R root:root /usr/share/man/man1/ /usr/share/man/man5/ /usr/share/man/man7/
sudo chmod -R a+r /usr/share/man/man1/ /usr/share/man/man5/ /usr/share/man/man7/

If you want to test the validity of the manpage you can use:

sudo mandb --test

It will inform you of any problem.

share|improve this answer
    
they are all gunzipped when tar runs. How can I gzip each separate one? –  Jaynuts Nov 17 '13 at 13:37
    
mandb will do that for you if needed. –  Braiam Nov 17 '13 at 13:40
    
Excellent thanks for your help, it worked wonderfully. –  Jaynuts Nov 17 '13 at 14:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.