Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
I'm trying to install jdk-6u6-linux-i586-rpm.bin on FC8. Normally it would be easy, but the root partition set up as read only (this cannot be changed).
What I would like to do is install above to /usr/local/java which is a writeable partition.
When I attempt to execute the bin file, it unpacks successfully, but then each package complains:
---------------------------------------------------------------------
error: unpacking of archive failed on file /usr: cpio: chown failed - Read-only file system
---------------------------------------------------------------------
or
---------------------------------------------------------------------
error: unpacking of archive failed on file /opt/sun/javadb: cpio: mkdir failed - No such file or directory
---------------------------------------------------------------------
Understandably, as the only writable location is under /usr/local, /etc and /var.
So, when I attempt to install the rpm manually, I get:
---------------------------------------------------------------------
[root@host /usr/local]# rpm -ivh --prefix=/usr/local/java jdk-6u6-linux-i586.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
error: unpacking of archive failed on file /usr: cpio: chown failed - Read-only file system
---------------------------------------------------------------------
or
---------------------------------------------------------------------
[root@host /usr/local]# rpm -ivh --relocate /usr=/usr/local jdk-6u6-linux-i586.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Error: unpack200 - command could not be found.
Please refer to the Troubleshooting section of theInstallation Instructions on the download page.
---------------------------------------------------------------------
I figure this is because unpack200 is now under /usr/local/java/jdk../bin/unpack200 (confirmed to exist) instead of /usr/java/jdk.../bin/unpack200
Any ideas how I could let the rpm finish it's installation?? As if I run java -version I get:
---------------------------------------------------------------------
[root@host bin]# ./java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
---------------------------------------------------------------------
which I guess implies that the installation (unpacking??) hasn't completed.
I think if you get the .bin file, you could install java anywhere you want. Just move the file to /usr/local/java and run the installer from there.
However, the question is, why is the root partition read only and can't be changed? Are you the root-user/admin on that machine? Is this your machine? Because if it is not, you should really need to ask your admin to install it for you. It is the admins job to install program after all, especially if you can't access part of the system to do it properly. Now, if you are actually not allowed to install applications, then we should really not help you to "hack into it"
thanks, you're correct! I didn't think of that. Obviously thinking too much about the rpm to consider anything else. It works perfectly, thanks for the help.
Also, to help ease your conscience, the reason why the root partition is read only is that it's a bunch of blade servers and the same root partition is mounted across them all, saving space on the storage unit. Makes sense, but when it comes to using history or adding to known_hosts files (when as root), it's a pain.
thanks, you're correct! I didn't think of that. Obviously thinking too much about the rpm to consider anything else. It works perfectly, thanks for the help.
Also, to help ease your conscience, the reason why the root partition is read only is that it's a bunch of blade servers and the same root partition is mounted across them all, saving space on the storage unit. Makes sense, but when it comes to using history or adding to known_hosts files (when as root), it's a pain.
Thanks again!
Hi there noshankus. Thanks for the reply. I wish more would do that saying "it worked" or "it didn't". Also thanks for explaining why the root was read-only. That is kinda unusual for workstations I guess
Oh, and before I forget (again), welcome to LQ.org
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.