"apt-get install" throws "fopen: Permission denied" errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nexenta Operating System |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Packages install ok but with a number of fopen errors.
magnus@octavius:~$ sudo apt-get install gimp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gimp-data libgimp2.0
Suggested packages:
ghostscript gimp-data-extras gimp-help-en gimp-help libasound2 libgimp-perl
Recommended packages:
gimp-gnomevfs gimp-libcurl gimp-python
The following NEW packages will be installed:
gimp gimp-data libgimp2.0
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.7MB of archives.
After this operation, 48.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 14.7MB in 48s (302kB/s)
Selecting previously deselected package gimp-data.
(Reading database ... 46343 files and directories currently installed.)
Unpacking gimp-data (from .../gimp-
Selecting previously deselected package libgimp2.0.
Unpacking libgimp2.0 (from .../libgimp2.
Selecting previously deselected package gimp.
Unpacking gimp (from .../gimp_
Processing triggers for man-db ...
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
fopen: Permission denied
Setting up gimp-data (2.4.6-
Setting up libgimp2.0 (2.4.6-
Setting up gimp (2.4.6-
magnus@octavius:~$ uname -a
SunOS octavius 5.11 NexentaOS_20081207 i86pc i386 i86pc Solaris
magnus@octavius:~$
Changed in nexenta: | |
status: | Confirmed → Fix Released |
I have made progress figuring out the root cause (literally).
/var/cache/man needs to be recursively owned by user "man". Many of the locale subdirs were owned by user "root". If you down a "chown -R man /var/cache/man" this problem goes away.
Each of the successive fopen errors seems to be related to updating manpages for each of the locales (thanks to mib_chrol in ##nexenta for finding the open64 call that triggers this)
This is why running /usr/bin/mandb as root does not trigger errors, but dpkg related tools will (as these seem to update /var/cache/man in the context of the "man" user).