https://bbs.archlinux.org/viewtopic.php?pid=1805477#p1805477
> Finally, it seems that something broke in the installation of groff, man returned to work after reinstalling groff and man.

ubuntu なら groff-base と man-db かな

sudo apt-get install --reinstall groff-base
sudo apt-get install --reinstall man-db

ファイル名末尾からそれを含むパッケージを検索
https://packages.ubuntu.com/search?suite=jammy&;arch=any&searchon=contents&keywords=bin%2Fgroff
https://packages.ubuntu.com/search?suite=jammy&;arch=any&searchon=contents&keywords=bin%2Fman

ファイル名からそれを含むパッケージを探すコマンド色々
https://superuser.com/questions/10997/find-what-package-a-file-belongs-to-in-ubuntu-debian