You are not logged in.

#1 2018-08-30 02:58:47

urucod
Member
Registered: 2018-08-19
Posts: 11

[SOLVED]man doesn't work

Each time that I run man, I receive an empty screen and on exit the following error is displayed:

man: command exited with status 3: (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 && neqn -Tutf8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=204n -rLT=204n -Tutf8)

I already tried to solve it by setting export MAN_DISABLE_SECCOMP = 1 in my .bashrc but it doesn't work, reinstalling man doesn't solve the problem either.
Say me if you need more information, thank you for your help smile

Last edited by urucod (2018-09-01 02:16:32)

Offline

#2 2018-08-30 03:23:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]man doesn't work

Please paste your .bashrc and the output of  'pacman -Syu --debug man` and `type man`.


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-08-30 03:49:38

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

Thank you for the quick reply, here is the information:
.bashrc = https://pastebin.com/h4FHfz1v
pacman -Syu --debug man = https://pastebin.com/NtWCtdHq
type man = man is /usr/bin/man

Last edited by urucod (2018-08-30 03:50:13)

Offline

#4 2018-08-30 07:03:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,842

Re: [SOLVED]man doesn't work

There's no trace of the export in your bashrc and the posted token has blanks.

Does this work?

MAN_DISABLE_SECCOMP=1 man man

Offline

#5 2018-08-30 15:31:24

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

I removed the export from my bashrc because it didn't work, running this => MAN_DISABLE_SECCOMP=1 man man I only get an empty man page.
And sorry to what blank tokens do you refer?

Offline

#6 2018-08-30 18:41:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,842

Re: [SOLVED]man doesn't work

Not "blank tokens" but "blanks in the token" - like "spaces", 0x20

So you get an empty man page - do you also get any errors? Do you get an empty page for "MAN_DISABLE_SECCOMP=1 man bash"?

Offline

#7 2018-08-30 19:55:29

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

Sorry I was didn't understand well, anyway I doesn't get where is the token token that has blanks because i didn't found it, it is in te bashrc or in the pacman output?
The exactly what I get from MAN_DISABLE_SECCOMP=1 man bash is the following => https://ibb.co/krfWxp
I get

man: command exited with status 3: (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 && neqn -Tutf8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=204n -rLT=204n -Tutf8)

after exit by q

Offline

#8 2018-08-30 21:03:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,842

Re: [SOLVED]man doesn't work

The blanks are in your first post in this thread - they render the export invalid which is why I believe jason asked for your actual bashrc.

What's the output of

ls -lh /usr/share/man/man1/man.1.gz
locale

?

Offline

#9 2018-08-31 03:34:22

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

Well, now I finish understanding your question and you are right it has blanks but I also try literally the command as you give me and it didn't work.

ls -lh /usr/share/man/man1/man.1.gz => -rw-r--r-- 1 root root 13K Aug  5 15:47 /usr/share/man/man1/man.1.gz

Just in case, the man command doesn't work for root user

locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Last edited by urucod (2018-08-31 03:37:01)

Offline

#10 2018-08-31 04:00:46

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED]man doesn't work

What about

man -P cat man

?  Does that show anything or just the error?

Offline

#11 2018-08-31 04:43:31

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

circleface wrote:

What about

man -P cat man

?  Does that show anything or just the error?

just the error

Offline

#12 2018-08-31 06:11:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,842

Re: [SOLVED]man doesn't work

strace -f man man > /tmp/man.strace 2>&1

Paste the resulting file to some pastebin service (one that allows to see and download the raw text, NOT ubuntus stupid service!)

Offline

#13 2018-08-31 17:52:28

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

If you prefer another page please suggest it
Strace output => https://pastebin.com/4N1xt347

Last edited by urucod (2018-09-01 01:42:30)

Offline

#14 2018-08-31 18:11:02

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED]man doesn't work

[pid  8070] openat(AT_FDCWD, "/usr/share/groff/site-font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] openat(AT_FDCWD, "/usr/share/groff/1.22.3/font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] openat(AT_FDCWD, "/usr/lib/font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] write(2, "groff: can't find `DESC' file\n", 30groff: can't find `DESC' file) = 30
[pid  8070] write(2, "groff:fatal error: invalid devic"..., 41groff:fatal error: invalid device `utf8'

What is the output of the following?

pacman -Qo /usr/share/groff/1.22.3/font/devutf8/DESC
pacman -Qkk groff

Last edited by loqs (2018-08-31 18:11:24)

Offline

#15 2018-08-31 19:35:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]man doesn't work

urucod wrote:

The best I know is pastebin, there you can see and download the raw text. If you prefer another page please suggest it
Strace output => https://pastebin.com/4N1xt347

Please don't suggest pastebin, this is even in the rules...
https://wiki.archlinux.org/index.php/Co … s_and_code


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#16 2018-09-01 02:02:32

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

loqs wrote:
[pid  8070] openat(AT_FDCWD, "/usr/share/groff/site-font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] openat(AT_FDCWD, "/usr/share/groff/1.22.3/font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] openat(AT_FDCWD, "/usr/lib/font/devutf8/DESC", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  8070] write(2, "groff: can't find `DESC' file\n", 30groff: can't find `DESC' file) = 30
[pid  8070] write(2, "groff:fatal error: invalid devic"..., 41groff:fatal error: invalid device `utf8'

What is the output of the following?

pacman -Qo /usr/share/groff/1.22.3/font/devutf8/DESC
pacman -Qkk groff

Finally, it seems that something broke in the installation of groff, man returned to work after reinstalling groff and man.
So thanks to all, they were very helpful: D

Last edited by urucod (2018-09-01 02:04:30)

Offline

#17 2018-09-01 02:06:19

urucod
Member
Registered: 2018-08-19
Posts: 11

Re: [SOLVED]man doesn't work

Slithery wrote:
urucod wrote:

The best I know is pastebin, there you can see and download the raw text. If you prefer another page please suggest it
Strace output => https://pastebin.com/4N1xt347

Please don't suggest pastebin, this is even in the rules...
https://wiki.archlinux.org/index.php/Co … s_and_code

Sorry I'm a newbie in the forum and I was didn't remember that rule, I fixed that

Offline

Board footer

Powered by FluxBB