Re: lots of Permision denied errors (Prev: Re: symlink errors while installing java)



On Thu, May 11, 2006 at 10:59:06AM -0400, justin alcon wrote:
i am having the exact same problem that this guy was having, i see lots of
people have this problem but i find no solutions, please help.
**********************************************************************************************

I tried to troubleshoot these problems myself to no avail

in a previous note you suggest to run make-jpkg as root. However when I
try it I get:

root@0[root]# make-jpkg jdk-1_5_0_05-linux-i586.bin
You are real root -- unfortunately, some Java distributions have
install scripts that directly manipulate /etc, and may cause some
inconsistencies on your system. Instead, you should become a
non-root user and run:

fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin

which will allow no damage to be done to your system files and
still permit the Java distribution to successfully extract.

Aborting.
This is working as expected. You are not supposed to run make-jpkg as root.
Please read the documentation that comes with java-package; none of the sources
of information mentioned here are authoritative.
[...]
knoppix@0[root]$ fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXRGHTQq
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh
ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh
sun-j2sdk-doc.sh sun-j2sdk.sh

Detected product:
Java(TM) Software Development Kit (J2SDK)
Standard Edition, Version 1.5.0+update05
Sun Microsystems(TM), Inc.
Is this correct [Y/n]: Y
[...]
mkdir: cannot create directory `/etc/.java': Permission denied
mkdir: cannot create directory `/etc/.java/.systemPrefs': No such file or
directory
touch: cannot touch `/etc/.java/.systemPrefs/.system.lock': No such file
or directory
chmod: cannot access `/etc/.java/.systemPrefs/.system.lock': No such file
or directory
touch: cannot touch `/etc/.java/.systemPrefs/.systemRootModFile': No such
file or directory
[...]
These error messages are normal and are not actually a problem; see java-package
bug #266273.
dpkg-deb: building package `sun-j2sdk1.5' in
`/tmp/make-jpkg.XXXXCMYDqU/sun-j2sdk1.5_1.5.0+update05_i386.deb'.
copy sun-j2sdk1.5_1.5.0+update05_i386.deb into directory
/ramdisk/home/root/
cp: cannot create regular file
`/ramdisk/home/root/sun-j2sdk1.5_1.5.0+update05_i386.deb': Permission
denied
[...]
You seem to have circumvented the restriction against running as root by having
the root account use fakeroot; that should perhaps be filed as a bug, even though
you are misusing the application. However, you are attempting to write the package
to the root home directory on the ramdisk, for which you do not have write
permission, and thus the .deb cannot be written there. This relates to java-package
bug #329958.
When you run into an issue with a given package, a great first step is to look at
the Debian BTS to see what bugs exist against that package. Sometimes the issue is
a legitimate bug, and sometimes it is misuse of a package. I would recommend running
as a normal user (not root) in a directory where you have appropriate file permissions.

Regards,
--
Barry Hawkins
All Things Computed
site: www.alltc.com
weblog: www.yepthatsme.com

Registered Linux User #368650

Attachment: signature.asc
Description: Digital signature



Relevant Pages