So I have a project that requires a specific (and modified) version of the jdk, which I am given as a tar.gz
.
I'm running a Kubuntu 17.04 in VirtualBox as a guest OS on a Windows 10 host, because the single disk of my laptop has too many partitions to set up dual boot on it.
To save space and to avoid having to move files from the guest to the host or vice versa, I have created a shared folder where I keep most my stuff, and it is within that folder that I tried to extract the jdk.
sudo tar xzf jdk-7u65-linux-x64.tar.gz
tar: jdk1.7.0_65/bin/ControlPanel: Cannot create symlink to ‘jcontrol’: Read-only file system
tar: jdk1.7.0_65/man/ja: Cannot create symlink to ‘ja_JP.UTF-8’: Read-only file system
tar: jdk1.7.0_65/jre/bin/ControlPanel: Cannot create symlink to ‘jcontrol’: Read-only file system
tar: jdk1.7.0_65/jre/lib/amd64/server/libjsig.so: Cannot create symlink to ‘../libjsig.so’: Read-only file system
tar: Exiting with failure status due to previous errors
I'm also getting these errors when I try to unzip the tarball with WinRAR on the host end unless I run WinRAR as an administrator. Still I don't really like doing it that way because I have no idea if extraction using WinRAR in Windows would do anything wrong to some files for use in Linux.
Is there a way to make this work from the Linux guest system? And if not, why not?
Permissions:
user@linux-VB:~$ namei -l ~/SHRD_FLDR
f: /home/user/SHRD_FLDR
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x user user user
lrwxrwxrwx user user SHRD_FLDR -> /media/sf_SHRD_FLDR/
drwxr-xr-x root root /
drwxr-xr-x root root media
drwxrwx--- root vboxsf sf_SHRD_FLDR
sudo
? Does root have write permission in that folder?sudo
in front of a command if something like this doesn't work on linux. As for the permissions, see the edit above.