Can't view man page for resolvectl because "-bx: -c: line 1: unexpected EOF while looking for matching ' "

I installed wireguard and the vpn works but the system still seems to be allowing DNS leaks, so I went to read the man page for resolvectl (I think I just need to comment out the fallback DNS servers) and I encountered this error:

man resolvectl
"-bx: -c: line 1: unexpected EOF while looking for matching ’ "

I’ve run makewhatis /usr/share/man and reinstalled mandoc and yet this error remains.

What should I do?

My man page is fine for resolvectl…dunno if that helps you or not.

Do you perhaps some kind of alias for man. What happens if you run command man resolvectl

command man resolvectl
-bx: -c: line 1: unexpected EOF while looking for matching ’ "

Have you reinstalled man-db too? man looks to be quite confusing because two packages own /usr/bin/man.

sudo pacman -S man-db

edit: man-db seems to be the correct package. Replacing it in lieu of mandoc should solve your issues.

I reinstalled man-db and that solved my problem.

Thank you, naim.

Note on the forum overview: You can edit your post so that a second post with the same content is no longer necessary.
Please be lenient. My aim was to keep the forum reasonably clear. Greetings, Sisyfos.
I’m glad you were able to solve the problem. I hope you continue to have fun in the forum and with CachyOs!