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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-16-2005, 01:40 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 3
Rep:
|
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.
|
|
|
03-16-2005, 03:05 PM
|
#2
|
LQ Newbie
Registered: Mar 2005
Posts: 3
Original Poster
Rep:
|
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?
|
|
|
03-16-2005, 03:23 PM
|
#3
|
LQ Newbie
Registered: Mar 2005
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|