LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2022, 09:58 AM   #16
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux, Buildroot, Busybox, Fedora, Raspberry Pi
Posts: 144

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by pan64 View Post
No, something is not ok here:

These are located in /lib and /usr/lib. And probably they really not accessible, but available. You need to check the permission on those files, not inside /usr/lib/man-db.
Those files really do not exist, so I don't know why it's reporting them as access denied. I even used a 'sudo ls' still not there.
Code:
mike@ubuntu:~$ ls /usr/lib/libmandb-2.10.2.so
ls: cannot access '/usr/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ ls /lib/libmandb-2.10.2.so
ls: cannot access '/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ sudo ls /lib/libmandb-2.10.2.so
ls: cannot access '/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ sudo ls /usr/lib/libmandb-2.10.2.so
ls: cannot access '/usr/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$
 
Old 10-06-2022, 05:36 PM   #17
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Note that permission will be denied if any node in the path to the file in question denies permission
In other words, what are the permissions seen on /usr, /usr/lib, and /usr/lib/man-db. All should show something like
Code:
$ ls -ld /usr /usr/lib /usr/lib/man-db
drwxr-xr-x.  16 root root  4096 Aug 13 02:20 /usr
dr-xr-xr-x. 112 root root 65536 Oct  5 02:20 /usr/lib
drwxr-xr-x.   2 root root 24576 Aug 31 10:14 /usr/lib/man-db
to allow any and all users to read and execute commands (including using the libraries) within those directories.

Permissions are not just related to the particular file but also to the path needed to access the file. For most users the permissions in the 'other' block are the ones of interest with system files.

Last edited by computersavvy; 10-06-2022 at 05:40 PM.
 
Old 10-06-2022, 07:09 PM   #18
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Mike Davies View Post
Those files really do not exist, so I don't know why it's reporting them as access denied. I even used a 'sudo ls' still not there.
Code:
mike@ubuntu:~$ ls /usr/lib/libmandb-2.10.2.so
ls: cannot access '/usr/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ ls /lib/libmandb-2.10.2.so
ls: cannot access '/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ sudo ls /lib/libmandb-2.10.2.so
ls: cannot access '/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$ sudo ls /usr/lib/libmandb-2.10.2.so
ls: cannot access '/usr/lib/libmandb-2.10.2.so': No such file or directory
mike@ubuntu:~$
Since the file does not exist it follows that certain apps may report "access denied" instead. After all it is certainly difficult to grant access to some file that is not present.

Thus, it relies on what the app reports as to how it is seen and interpreted by the user. Ls is telling you the file is not present. The other app says 'access denied'. Two different ways of saying the same thing.
 
Old 10-07-2022, 10:33 AM   #19
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux, Buildroot, Busybox, Fedora, Raspberry Pi
Posts: 144

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by computersavvy View Post
Note that permission will be denied if any node in the path to the file in question denies permission
In other words, what are the permissions seen on /usr, /usr/lib, and /usr/lib/man-db. All should show something like
Code:
$ ls -ld /usr /usr/lib /usr/lib/man-db
drwxr-xr-x.  16 root root  4096 Aug 13 02:20 /usr
dr-xr-xr-x. 112 root root 65536 Oct  5 02:20 /usr/lib
drwxr-xr-x.   2 root root 24576 Aug 31 10:14 /usr/lib/man-db
to allow any and all users to read and execute commands (including using the libraries) within those directories.

Permissions are not just related to the particular file but also to the path needed to access the file. For most users the permissions in the 'other' block are the ones of interest with system files.
Yeah, thanks we knew that. As you can see the permissions are OK.

Code:
mike@ubuntu:~$ ls -ld /usr /usr/lib /usr/lib/man-db
drwxr-xr-x 11 root root 4096 Aug  9 11:54 /usr
drwxr-xr-x 83 root root 4096 Oct  6 11:13 /usr/lib
drwxr-xr-x  2 root root 4096 Oct  6 13:01 /usr/lib/man-db
mike@ubuntu:~$
We had a meeting here about this system. It's the first time we have used Ubuntu, and we're not happy about this weird behaviour. We have only ever used systems built completely from source, or used Fedora.

The version we downloaded from this URL https://ubuntu.com/download/raspberry-pi was the 64-bit server. We are running it on a Raspberry Pi 4 (8Gb). Of course being a Raspberry Pi we cannot use the normal .iso because it has to boot from something before it can read an .iso image, so we used this preconfigured .img on the SDHC

Incidentally we did try an apt reinstall of man, but all that did was remove the execute permissions on the library.

We have the work-around of using the sudo command, but the consensus of the meeting is that we'll no longer continue with this, because we don't like the idea of not knowing why, and then there's lots of other stuff we're not used to like cloud-init etc.

I'll leave the thread without flagging it solved, but will check back from time to time to see if anyone has a fix.
 
Old 10-07-2022, 11:18 AM   #20
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This certainly looks like a bug, you should file it with Ubuntu bug tracker.
 
Old 10-07-2022, 11:54 AM   #21
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,985

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by Emerson View Post
This certainly looks like a bug, you should file it with Ubuntu bug tracker.
Yes, it looks like a bug, but I'm pretty sure it cannot be easily reproduced. So if you want to report it you need to find a way to reproduce it.
From the other hand yes, it looks like a bug, but I'm not really sure it is really a bug and not a misconfiguration. Actually I cannot check it on that host, so I can only give some ideas to test and to try. Anyway, I would still try to put that lib into /usr/lib, probably that will work. Or probably you only need to specify LD_LIBRARY_PATH (and probably that was incorrect in the past).
Finally it would be a really ugly and annoying bug, I don't really think it could hide for a long time (if it was really a bug somewhere).
 
Old 10-07-2022, 12:08 PM   #22
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This is ARM version of Ubuntu, not many may be worried about this bug. Generally, how popular is Ubuntu for ARM? Furthermore, if there are Ubuntu ARM desktop users, how many of them would even try to read man pages?
 
Old 10-07-2022, 12:48 PM   #23
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,985

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by Emerson View Post
This is ARM version of Ubuntu, not many may be worried about this bug. Generally, how popular is Ubuntu for ARM? Furthermore, if there are Ubuntu ARM desktop users, how many of them would even try to read man pages?
RPi is an arm device. And this is not the only one. Anyway, for root it works, so most probably it is a setting/configuration related issue, not a bug. But I'm not really sure about that.
 
Old 10-07-2022, 12:51 PM   #24
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Well, if this issue comes with install then it is a bug. If not software bug then it is an install bug.
 
Old 10-07-2022, 04:51 PM   #25
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I am using Ubuntu 22.04 on a RPi 4b (8 GB) and this is what I see. The system was updated just yesterday.
Code:
$ ls -l /usr/lib/man-db/
total 208
-rw-r--r-- 1 root root 184496 Mar 17  2022 libman-2.10.2.so
-rw-r--r-- 1 root root  22448 Mar 17  2022 libmandb-2.10.2.so
lrwxrwxrwx 1 root root     18 Mar 17  2022 libmandb.so -> libmandb-2.10.2.so
lrwxrwxrwx 1 root root     16 Mar 17  2022 libman.so -> libman-2.10.2.so
lrwxrwxrwx 1 root root     13 Mar 17  2022 man -> ../../bin/man
lrwxrwxrwx 1 root root     15 Mar 17  2022 mandb -> ../../bin/mandb
 
Old 10-07-2022, 05:44 PM   #26
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I have an RPi 4B (8 GB) running Ubuntu 22.04 LTS.
Checking it out in relation to the problems noted here by the OP I find that everything he had problems with just worked for me.
man ping works with no errors. In fact man works with every task I tried.
I have the same files in /usr/lib/man-db as the OP.

I do note however that there are no libmandb.so-2.10.2 files in /usr/lib, but only in /usr/lib/man-db.
My user does not display a value for "echo $LD_LIBRARY_PATH"

I wonder if the errors reported earlier about the files /lib/libmandb.so-2.10.2 and /usr/lib/libmandb.so-2.10.2 were related to the fact that the OP had $LD_LIBRARY_PATH defined and it was not needed. That value may have interfered with finding the actual file. It certainly is not required for me and AFAIK has never been needed for the average user.

$ uname -a
Linux raspi 5.15.0-1015-raspi #17-Ubuntu SMP PREEMPT Mon Sep 12 13:14:51 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
 
Old 10-08-2022, 02:22 AM   #27
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,985

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by computersavvy View Post
I have an RPi 4B (8 GB) running Ubuntu 22.04 LTS.
Checking it out in relation to the problems noted here by the OP I find that everything he had problems with just worked for me.
man ping works with no errors. In fact man works with every task I tried.
I have the same files in /usr/lib/man-db as the OP.

I do note however that there are no libmandb.so-2.10.2 files in /usr/lib, but only in /usr/lib/man-db.
My user does not display a value for "echo $LD_LIBRARY_PATH"

I wonder if the errors reported earlier about the files /lib/libmandb.so-2.10.2 and /usr/lib/libmandb.so-2.10.2 were related to the fact that the OP had $LD_LIBRARY_PATH defined and it was not needed. That value may have interfered with finding the actual file. It certainly is not required for me and AFAIK has never been needed for the average user.

$ uname -a
Linux raspi 5.15.0-1015-raspi #17-Ubuntu SMP PREEMPT Mon Sep 12 13:14:51 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
I can't check at this moment, but if that so file is found in /lib or /usr/lib the system will try to use it and will drop an error if actually useless. Probably that is the problem, there is something in those directories (based on the strace log).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with GCC: while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory juju Slackware 18 04-30-2021 05:25 PM
How to fix error: " error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory"? justa_skid Linux - Newbie 2 02-22-2021 02:23 AM
[SOLVED] thunar: error while loading shared libraries: libexo-2.so.0: cannot open shared object file: No such file or directory M0M0 Slackware 8 09-18-2020 06:57 PM
apt-config:error while loading shared libraries: libgcc_s.so.1 cannot open shared object file: No such file or directory wenyumei Ubuntu 1 07-20-2016 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration