man has no section 2. /usr/share/man/man2 is empty. fork(2) is actually fork(3) and there is no printf(3), printf(2), execve(2), or execve(3). How do I fix my man pages?

I'm on Ubuntu 16.04 and man-db is already installed and reinstalled.

  • 1
    We don't know what Unix you're on. On some Linux systems, you are required to install the manual pages separately. – Kusalananda Jan 1 '17 at 19:45
  • @Kusalananda Sorry, updated – robbie Jan 1 '17 at 19:53
  • Try apropos printf and similar to clarify the actual man pages available. I think you're just looking at the wrong place. Note that some of the pages you seem to be expecting don't appear to exist such as man 3 execve. – Julie Pelletier Jan 1 '17 at 20:11
  • It appears that fork(2) is located in manpages package. Do you have it installed? – myaut Jan 1 '17 at 20:13
  • @myaut Installed manpages, no fork(2) – robbie Jan 1 '17 at 20:16

The execve(2), fork(2) and printf(3) manpages are all in the manpages-dev package.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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