[SATLUG] man pages not displaying

Frank Huddleston fhuddles at gmail.com
Sat Jan 27 21:54:18 CST 2018


Greetings,

  The man pages on my Debian testing computer are no longer working. If I
run, for example,
man ls (or man anything else), I get a blank page with
Manual page ls(1) line ?/? (END) (press h for help or q to quit)
at the bottom. If I hit return, I get what looks like output from "less"
with a lot of
empty lines: tildes (~), with the same message below.
If I enter q to quit, the following is displayed:

man: command exited with status 1: /usr/lib/man-db/zsoelim |
/usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e
UTF-8 | tbl | nroff -mandoc -rLL=113n -rLT=113n -Tutf8

I've done an strace on man, and notice a number of errors trying to open
nonexistent files. Many of them right at the start. Here's the beginning of
the strace
output:
execve("/usr/bin/man", ["man", "man"], 0x7ffd460389c0 /* 37 vars */) = 0
brk(NULL)                               = 0x55757ee2b000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/man-db/tls/x86_64/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/tls/x86_64/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "/usr/lib/man-db/tls/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/tls/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No such
file or directory)
openat(AT_FDCWD, "/usr/lib/man-db/tls/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/tls/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No such
file or directory)
openat(AT_FDCWD, "/usr/lib/man-db/tls/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/tls", 0x7ffdfc903e20) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/man-db/x86_64/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/x86_64/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No such
file or directory)
openat(AT_FDCWD, "/usr/lib/man-db/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/man-db/x86_64/libmandb-2.7.6.1.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/man-db/x86_64", 0x7ffdfc903e20) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/man-db/libmandb-2.7.6.1.so", O_RDONLY|O_CLOEXEC)
= 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\32\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=22368, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fb8c2a4b000
mmap(NULL, 2117936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb8c2623000
mprotect(0x7fb8c2628000, 2093056, PROT_NONE) = 0
mmap(0x7fb8c2827000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7fb8c2827000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/man-db/libman-2.7.6.1.so", O_RDONLY|O_CLOEXEC) =
3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0
\215\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=140288, ...}) = 0
mmap(NULL, 2238288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb8c2400000
mprotect(0x7fb8c2420000, 2097152, PROT_NONE) = 0
mmap(0x7fb8c2620000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7fb8c2620000
mmap(0x7fb8c2622000, 1872, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb8c2622000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/man-db/libgdbm.so.3", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=246483, ...}) = 0
mmap(NULL, 246483, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb8c2a0e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libgdbm.so.3",
O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\26\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=26912, ...}) = 0
mmap(NULL, 2122152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb8c21f9000
mprotect(0x7fb8c21fe000, 2097152, PROT_NONE) = 0
mmap(0x7fb8c23fe000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7fb8c23fe000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/man-db/libpipeline.so.1", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libpipeline.so.1",
O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360(\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=55136, ...}) = 0
mmap(NULL, 2152912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fb8c1feb000
mprotect(0x7fb8c1ff8000, 2093056, PROT_NONE) = 0
mmap(0x7fb8c21f7000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7fb8c21f7000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/man-db/libc.so.6", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\20\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1783832, ...}) = 0

Some of these files, like libmandb-2.7.6.1.so, exist in the /usr/lib/man-db
directory, but not in the places they are being sought. Note that it does
not produce an error when the program looks in /usr/lib/man-db, where it
actually resides. Others, like /usr/lib/man-db/libgdbm.so.3,
/etc/ld.so.nohwcap, and libpipeline.so.1, just don't exist, that I can see.
I've tried removing and reinstalling groff-base and man-db, but no
improvement.
A few things that might be a factor: I stopped running gdm some time ago. I
can't remember exactly how I did that: perhaps by just uninstalling it. I
don't know if that's when I had the trouble with the man pages, but I don't
think so. I have the same problem if I try it after logon, before I run
startx.
Also, my root partition was running out of space, so I moved /usr/share to
my /home partition and made /usr/share a link to it. A kludge but more
expedient than
trying to resize the partitions. There were a few other links I had to add
but for the most part it seems to work.

Any ideas what's wrong and what I might do to fix it? I could just resize
the partitions but I'm sort of curious what's going on. And that might not
even fix it.

Thanks,

Frank Huddleston


More information about the SATLUG mailing list