I've installed a 22.04 LTS Ubuntu Server as a minimal install and installed the following packages :
vim man-db manpages dialog bash-completion screen
Now when I run man ls
, ubuntu is asking me to run the unminimize
command although the man packages are already installed :
$ dpkg -l | egrep "man-db|manpages"ii isc-dhcp-common 4.4.1-2.3ubuntu2.1 amd64 common manpages relevant to all of the isc-dhcp packagesii man-db 2.10.2-1 amd64 tools for reading manual pagesii manpages 5.10-1ubuntu1 all Manual pages about using a GNU/Linux system
And the directory /usr/share/man/man1
is empty :
$ ls /usr/share/man/man1$ man -w lsThis system has been minimized by removing packages and content that arenot required on a system that users do not log into.To restore this content, including manpages, you can run the 'unminimize'command. You will still need to ensure the 'man-db' package is installed.
and mandb
outputs :
$ sudo mandbPurging old database entries in /usr/share/man...Processing manual pages under /usr/share/man...Purging old database entries in /usr/share/man/id...Processing manual pages under /usr/share/man/id......Processing manual pages under /usr/local/man...mandb: cant update index cache /var/cache/man/oldlocal/8087: No such file or directory0 man subdirectories contained newer manual pages.0 manual pages were added.0 stray cats were added.0 old database entries were purged.$
The strangest thing is this :
$ ls $(dpkg -L coreutils | grep man1/ls.1)ls: cannot access '/usr/share/man/man1/ls.1.gz': No such file or directory
Found this :
$ dpkg -S bin/manman-db: /usr/bin/manpathlocal diversion from: /usr/bin/manlocal diversion to: /usr/bin/man.REALman-db: /usr/bin/manlocal diversion from: /usr/bin/manlocal diversion to: /usr/bin/man.REALman-db: /usr/bin/mandbman-db: /usr/bin/man-recode$ head $(which man)#!/bin/shecho "This system has been minimized by removing packages and content that are"echo "not required on a system that users do not log into."echo ""echo "To restore this content, including manpages, you can run the 'unminimize'"echo "command. You will still need to ensure the 'man-db' package is installed."$ man.REAL -w lsNo manual entry for ls
How can this be solved without having to unminimize Ubuntu ?