1

after trying to install man pages in italian language I get this error:

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

Actually I deleted the man* folders in /usr/shar/man/. How can I solve? I don't want the italian pages, just fix this error

EDIT

After a reboot, the folders has appeared again, but inside there aren't .gz files, there are files like:

file.[1-9]

where the numbers are the same of the folder man[1-9]

  • Does man ls work now? – fkraiem Jan 29 '16 at 17:47
  • no, nothing work. I have some folders in Italian, bur there are few command. I want the default folders, where can I find them? – linofex Jan 29 '16 at 17:50
3

First reinstall the man-db package, which contains the basic manual infrastructure

sudo apt-get install --reinstall man-db

Then if an individual man page is missing, reinstall the package of the program in question, which should also contain the man pages. For ls, the package is coreutils.

  • The problem persists. – linofex Jan 29 '16 at 22:57
  • Thanks dude, it worked. But can you expand on why this might happen and a way to avoid it without having to reinstall packages. – Passer by Dec 7 '17 at 14:55
  • 1
    @Passerby Just don't rm the man pages... – fkraiem Dec 7 '17 at 23:13

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.