LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 03-16-2005, 01:40 PM   #1
finrod_2002
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
fakeroot problem


Hi,
I have debian/sarge installed with debootstrap.
I tried to build a Java Package with the command:

# make-jpkg <java-package-name>

and I got the following error:

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 jre-1_5_0_02-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...


I tried as normal user using fakeroot and also sudo and I got the same error.

Everybody on the Internet says that to install javapackages you only need fakeroot, but on my system fakeroot doesn't work.
 
Old 03-16-2005, 03:05 PM   #2
finrod_2002
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Actually, I think the problem is not in the fakeroot, but in the make-jpkg script:


if touch /lib/.test 2>/dev/null; then
rm -f /lib/.test
echo "You are real root -- unfortunately, some Java distribution s have" >&2
echo "install scripts that directly manipulate /etc, and may cau se some" >&2
echo "inconsistencies on your system. Instead, you should become a" >&2
echo "non-root user and run:" >&2
echo >&2
echo "fakeroot make-jpkg $@" >&2
echo >&2
echo "which will allow no damage to be done to your system files and" >&2
echo "still permit the Java distribution to successfully extract ." >&2
echo >&2
echo "Aborting." >&2
exit 1
fi

The following commands run in my system without errors:

fakeroot touch /lib/.test
fakeroot rm /lib/.test

I'm sorry, but I'm not so expert in using fakeroot, is it normal that you can run those
commands without errors?
 
Old 03-16-2005, 03:23 PM   #3
finrod_2002
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I've solved the problem:

I had the following /lib permissions, I don't know why:

drwxrwxrwx 4 root root 4096 Mar 16 21:21 lib

Of course, with these permissions everyone can write in the /lib directory.

I changed them to:

drwxr-xr-x 4 root root 4096 Mar 16 22:10 lib

Only root can write in /lib know.


and

fakeroot make-jpkg <java-name>

works, because the test fails:

if touch /lib/.test 2>/dev/null; then
rm -f /lib/.test

He can't create the .test file anymore, because know only
root can do that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ioperm - operation not permitted when using fakeroot Zotty Programming 3 09-21-2004 04:34 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration