Yesterday when the new GhostBSD 26.1-R15.0p2 release came out, I upgraded. It required me to reboot, so I did, but the screen remained black - only the mouse cursor was seen. So I used F1 to into the terminal, and log in there. Tried to startx but got the error that no screens were found, some kind of a problem with NVIDIA. This happened before, so I did what I suspected would work, and what the announcement post also suggested: sudo pkg upgrade --force
It did work - to some degree. After a reboot, X was running again, so I could log in to the desktop environment. But now I see that there is no man anymore:
man man
# fish: Unknown command: man
sudo pkg install man
# pkg: No packages available to install matching 'man' have been found in the repositories
sudo find / -name "man"
# /compat/linux/usr/share/man
# /usr/share/openssl/man
# /usr/share/man
# /usr/local/lib/node_modules/npm/man
# /usr/local/lib/node_modules/npm/node_modules/cssesc/man
# /usr/local/lib/perl5/5.36/perl/man
# /usr/local/lib/perl5/5.42/perl/man
# /usr/local/lib/perl5/site_perl/man
# /usr/local/openjdk8/man
# /usr/local/openjdk21/man
# /usr/local/man
# /usr/local/share/fish/man
# /usr/local/share/man
# /usr/local/openjdk17/man
As you can see, no man binary is found. And there is no Emacs either, not even in the pkg repository, which is odd, because it would mean other people can also not install it:
emacs
# fish: Unknown command: emacs
sudo pkg install emacs
# pkg: No packages available to install matching 'emacs' have been found in the repositories
When I run pkg search emacs I do see a whole bunch of emacs packages, but none of them are the base one. The one that comes closest is emacs-devel-31.0.50.20260316,3 which I haven't tried yet, and it doesn't seem normal that I would have to install the development version instead of the stable release.
Some system info:
uname -a
# FreeBSD matt-ghostbsd 15.0-RELEASE-p2 FreeBSD 15.0-RELEASE-p2 n230752-16dcabacd5f2 GENERIC amd64
ghostbsd-version -fkov
# 15.0-RELEASE-p2
# 1500068
# 26.1-R15.0p2
# 26.1-R15.0p2
Since I rely heavily on emacs and man is an important base utility on FreeBSD, can someone please tell me what I need to do to get these working again? Also: how can I guard myself against this happening again, and how can I diagnose my system if there are other things also missing that I don't yet know about?