Just a footnote to parent post: Groff is developed as a complete set of programs and macro files. Debian, hence Ubuntu and other derivative distros, segment groff into a base package with what you need to display man pages (using the man macros) that comes as part of a base install and an additional package that has the mom macros and all. Just 'apt install groff' to get the full groff distribution.