You are not logged in.

#1 2020-03-28 09:40:15

drakula44
Member
Registered: 2019-09-01
Posts: 9

[SOLVED] man pages don't show properly

I don't know when it started but my man pages are not showing properly
here is the output of

man man

first line:   70^h>?C!YNgKvH|wVh{rD_~1Sa"Ct~C=!nR/JL1g$?lnc`O4jX:    ;    3%H<@Xs`                 $
full:https://pastebin.com/8gamewwb
Im using archlinux 5.5.11 kernel bspwm window manager.
same on st,urxvt,xterm.
Sorry for a little information but don't know what to post more.
I tried reinstalling man-db and man-pages.
It is same on every man page that I opened

Last edited by drakula44 (2020-03-28 16:09:40)

Offline

#2 2020-03-28 12:10:44

xerxes_
Member
Registered: 2018-04-29
Posts: 665

Re: [SOLVED] man pages don't show properly

Do you use ttf-inconsolata font for terminal? -> https://bbs.archlinux.org/viewtopic.php?id=254029

Offline

#3 2020-03-28 12:14:56

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

No, I'm using JoyPixels font and I think my man pages are screwed at least 1 month.

Offline

#4 2020-03-28 12:42:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [SOLVED] man pages don't show properly

Please post the output from each of the following:

type man
echo $MANPAGER
file /usr/share/man/man1/man.1.gz
zcat /usr/share/man/man1/man.1.gz | head -20

Last edited by Trilby (2020-03-28 12:43:47)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2020-03-28 12:44:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] man pages don't show properly

That output has references to modernizr and youtube and what looks like snippets of javascript.

Please post the output of

$ type -a man tbl troff
$ pacman -Qkk groff man-db
$ env

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2020-03-28 13:14:48

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

type man :
man is /usr/bin/man
tbl is /usr/bin/tbl 
troff is /usr/bin/troff 
echo $MANPAGER

is empty

file /usr/share/man/man1/man.1.gz 

/usr/share/man/man1/man.1.gz: gzip compressed data, max compression, from Unix, original size modulo 2^32 32380

zcat /usr/share/man/man1/man.1.gz | head -20 

https://pastebin.com/VnqQiP12

pacman -Qkk groff man-db

groff: 629 total files, 0 altered files
man-db: 449 total files, 0 altered files

 env 

https://pastebin.com/TECpzU8Z

Thanks for reply

Offline

#7 2020-03-28 13:25:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [SOLVED] man pages don't show properly

That all looks good.  The only thing I'm unsure of is all the LESS_TERMCAP_* settings in the environment.  If not set properly, they could mangle the display of man pages.  To test that, check the output of the following:

man man | head

If this is readable and looks like the top of a man page, then the problem is with less and likely with all those TERMCAP settings.

(EDIT: although this would not explain where the modernizer and js content came from ... but still lets rule out issues with less.)

Last edited by Trilby (2020-03-28 13:26:46)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#8 2020-03-28 15:01:24

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

It looks same as less output I try not setting LESS_TERMCAP_* in mine .profile but change noting

Offline

#9 2020-03-28 15:10:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [SOLVED] man pages don't show properly

Hmm, how about `strace man man` output? (it will be long, post to a file sharing site).

(edit: typo)

Last edited by Trilby (2020-03-28 15:11:53)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#10 2020-03-28 15:11:15

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] man pages don't show properly

He meant "strace"

Sanity check: do you know what "OMZ" is?

Offline

#11 2020-03-28 15:29:57

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

https://pastebin.com/gzJfWD8R

Thank you for helping I quit love debugging but don't know where to start with these.

Offline

#12 2020-03-28 15:57:08

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] man pages don't show properly

There's a bunch of invalid characters.
Can you

env -i man man

?

Offline

#13 2020-03-28 16:07:34

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

Thank you guys I solved it i just reinstall groff and it did it.

Offline

#14 2020-03-28 16:09:27

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: [SOLVED] man pages don't show properly

comment #6 wrote:

groff: 629 total files, 0 altered files

Partial updates?

Offline

#15 2020-03-28 16:13:07

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

No i dont thik so i always run pacman -Syu and now i just run pacman -S groff

Offline

#16 2020-03-28 16:26:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [SOLVED] man pages don't show properly

Seth, he had the correct version number in the paths in the strace output.  I'm a bit baffled though.  Groff doesn't have any post install scripts, nor can I find any pacman hooks that would be triggered by the reinstall.  So how on earth did pacman -Qk report no altered files, yet a reinstall fixed it.  I suspect coincidence ... something else changed.

EDIT: or could a corrupted package be possible?  Pacman -Qk checks local files against what's in the locally downloaded package or database, right?  If the downloaded package was bad, pacman -Qk would not detect a problem.

Last edited by Trilby (2020-03-28 16:28:39)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#17 2020-03-28 16:42:26

drakula44
Member
Registered: 2019-09-01
Posts: 9

Re: [SOLVED] man pages don't show properly

I had some corrupted packages before and had to run fsck a few times before probably then my package corupted

Offline

Board footer

Powered by FluxBB