Man pages are broken -> fix found

Post Reply
Wild Penguin
Posts: 31
Joined: Thu Mar 09, 2017 11:01 pm
languages_spoken: english, finnish
ODROIDs: Odroid C1
Has thanked: 0
Been thanked: 1 time
Contact:

Man pages are broken -> fix found

Unread post by Wild Penguin » Sat Mar 02, 2019 12:04 am

Hi,

Just posting this to potentially save someone else's time (workaround at end) and to ask, is it just me?

For some reason man pages are broken. I can find several search hits with a similar problem and bug reports, but these state this should have been fixed somewhere between man-db 2.8.0 and 2.8.2, but current Ubuntu has 2.8.3-2.

The problem is, that the pages are blank and after exiting man, it exits with error 4:

Code: Select all

$ man man                                                                                                             
man: command exited with status 4: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-
8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=153n -rLT=153n -Tutf8)
Workaround to install apparmor-utils and running app-armor disable works, as described here (run with sudo):

Code: Select all

apt install apparmor-utils
aa-disable /usr/bin/man
These users thanked the author Wild Penguin for the post:
karlp (Sat Jul 20, 2019 6:10 am)

User avatar
mad_ady
Posts: 6854
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 234 times
Been thanked: 177 times
Contact:

Re: Man pages are broken -> fix found

Unread post by mad_ady » Sat Mar 02, 2019 1:29 am

Thanks!

I too had this problem on a C1 which was upgraded from 16.04. It was a nuisance and I was too lazy to look into it, so thanks for posting the solution!

Wild Penguin
Posts: 31
Joined: Thu Mar 09, 2017 11:01 pm
languages_spoken: english, finnish
ODROIDs: Odroid C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Man pages are broken -> fix found

Unread post by Wild Penguin » Sun Mar 03, 2019 7:56 pm

Hmm,

So maybe this is still an issue on some corner cases? Architecture specific?

Perhaps a good idea to make an upstream bug report...

User avatar
mad_ady
Posts: 6854
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 234 times
Been thanked: 177 times
Contact:

Re: Man pages are broken -> fix found

Unread post by mad_ady » Sun Mar 03, 2019 8:29 pm

Have you dist-upgraded, or was it a clean install? For xu4, which I also dist-upgraded from 16->18 and is also armhf I didn't have the same issue.

Wild Penguin
Posts: 31
Joined: Thu Mar 09, 2017 11:01 pm
languages_spoken: english, finnish
ODROIDs: Odroid C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Man pages are broken -> fix found

Unread post by Wild Penguin » Mon Mar 04, 2019 8:34 am

IIRC the very first things I did was apt-get update, upgrade and dist-upgrade. Didn't try any man pages before that.

This was a clean install from the 18.04.1 LTS images so dist-upgrade did very little upgrades.

Perhaps it is Kernel related, or processor related? Is the XU4 64 or 32bit?

User avatar
mad_ady
Posts: 6854
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 234 times
Been thanked: 177 times
Contact:

Re: Man pages are broken -> fix found

Unread post by mad_ady » Mon Mar 04, 2019 3:19 pm

XU4 is 32bit as well.

User avatar
mad_ady
Posts: 6854
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 234 times
Been thanked: 177 times
Contact:

Re: Man pages are broken -> fix found

Unread post by mad_ady » Mon Mar 11, 2019 10:06 pm

Guess what? I upgraded my C2 from 16.04 to 18.04 and it started to show the same symptoms when running man. The fix in the first post fixed it, so it must be an artefact of upgrading from 16->18.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest