You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@localhost:~# tar cvf kkk.tar kkk
kkk/
kkk/atest
tar: kkk/btest: Cannot readlink: Invalid argument
tar: Exiting with failure status due to previous errors
In reverse, the symbolic links in a tar file which built on Linux can't be extracted.
Reacted by Hamza Faran, Harald van Dijk, Yalçın Açıkyıldız, Scott Holodak, Julihermes Melo, Peter Hausel, Sven, Aaron Hayes, Peter Foley, Prem Nair and 11 more
I can echo this: I tried to install rvm from get.rvm.io and the script crashes and burns because of the tar symlink incompatibility.
Reacted by Yalçın Açıkyıldız, Jordan Panagsagan, Oleg, Mark, Henning M. Stephansen, PurityControl, David Harris, skenaja, James Kovacs and Per Lundberg
I also can confirm this. (Running on 64-bit, on the off chance that matters). Can create symlinks just fine, cannot tar them or untar packages which contain them. As an interesting consequence, apt packages which contain symlinks (Java) also cannot be installed.
Reacted by Carlos, KrzysztofKowalczyk and dtracers
I was trying to copy files from a real linux box using tar. Also running into the symlink issue. As a workaround I was able to copy the files using bsdtar which creates symlinks correctly.
+1.
Can't install Meteor due to this issue.
Copying the files from a Linux VM sort of works if you re-create the tarball with the h option (i.e. tar cvfh).
The tar extraction problem with symlinks is caused by the missing symlinkat syscall (symlink was supported but not the at variant). This bug has been fixed internally.
Similarly, I believe creating a tar file with symlinks fails because readlinkat is missing.
Reacted by Ivan Pintado, Jordan Harband, Fredrik Boulund, MuiBienCarlota, Fernando Alex Helwanger, Hamza Faran, Ricardo Lopez, Per Lundberg, Brooke Vibber, Peter Tilg and 2 more
Just as a note if someone else stumbles upon this: this also affects installation of Miniconda using Continuum Analytics Miniconda installation shell script that extracts a tar archive containing symlinks.
You get errors like this:
tar: bin/2to3: Cannot create symlink to ‘2to3-3.5’: Invalid argument
Reacted by Juan Luis Cano Rodríguez and prgx-mrodri01
Having the same trouble installing RVM. I can download the zip version and install manually, but I get a warning at the end of the install:
* WARNING: you are missing '/dev/fd' it is important for shell scripting used by RVM, You can fix it on most linux systems with: ln -sf /proc/self/fd /dev/fd
/proc/self/fd does exist, but following those instructions gives me:
root@localhost:~# ln -s /proc/self/fd /dev/fd ln: failed to create symbolic link ‘/dev/fd’: Operation not permitted
This is a different error. I make a note here wondering if the (internal) fix would address this, or if we're into some unsupported behavior in the /proc filesystem now.
I got RVM installed manually, but, of course, it wants to install rubies from tar-ed sources, which loops me back around to the original problem, and I'm tired of fighting it.
DunKirk, that error is due to some limitations of our /dev filesystem that prevent you from creating a link there. We're working to address this. This is separate from the symlinkat error.
Reacted by David Krider, William Guss, Hamza Faran, PurityControl, Adrien El Zein, Vasily Bezruchkin, Huiming Teo, Jordan Panagsagan, empyrical and dtracers
This thread is for the combination of symlink and 'tar', not for all things related to symlink or tar.
Please create new issue with title like 'grep with symbolic links'.
@therevmj Han Sang-jin (@tinysun212) I tried this repro internally and verified that this is now working. The fix will be making its way to a windows insider build soon.
Sorry to be a bit OT, but how do you push your insider machine to download the latest build? Mine is still running the "original" 160402 (or so) release, meaning I don't have the symlink fixes etc...
Hamza Faran (@hfaran) - thanks. The problem is I am already on the fast ring, but the updates don't seem to be coming. And I cannot find a way to manually force them to come. Any suggestions?
Activity
jokeyrhyme commentedon Apr 7, 2016
Related to #3 and/or #6 ?
tinysun212 commentedon Apr 7, 2016
The error messages are different.
In my case,
ln -sis working, but not compatible withtar.Here is the reverse operation output. ( extracting symlinks-containing tar whilch is built on real Linux )
hfaran commentedon Apr 7, 2016
I can echo this: I tried to install rvm from get.rvm.io and the script crashes and burns because of the tar symlink incompatibility.
mphaney commentedon Apr 7, 2016
I also can confirm this. (Running on 64-bit, on the off chance that matters). Can create symlinks just fine, cannot tar them or untar packages which contain them. As an interesting consequence, apt packages which contain symlinks (Java) also cannot be installed.
christoh commentedon Apr 7, 2016
I was trying to copy files from a real linux box using tar. Also running into the symlink issue. As a workaround I was able to copy the files using bsdtar which creates symlinks correctly.
ljharb commentedon Apr 7, 2016
This is affecting http://nvm.sh installs via windows as well. nvm-sh/nvm#1054
jbaribeault commentedon Apr 7, 2016
This might relate to is #44 as well...for me anyway, the move won't work on tarballs/zips from CPAN which contain soft links.
tomgrek commentedon Apr 8, 2016
+1.
Can't install Meteor due to this issue.
Copying the files from a Linux VM sort of works if you re-create the tarball with the h option (i.e. tar cvfh).
filipeaguiar commentedon Apr 9, 2016
As Jordan Harband (@ljharb) said: nvm doesn't install properly. And none of the tools that uses symlinks with tar works right now.
ljharb commentedon Apr 9, 2016
To clarify, this is affecting
nvm's ability to install node.nvmitself installs fine.julihermes commentedon Apr 9, 2016
because of this error i am not able to install rbenv
SvenGroot commentedon Apr 10, 2016
The tar extraction problem with symlinks is caused by the missing symlinkat syscall (symlink was supported but not the at variant). This bug has been fixed internally.
Similarly, I believe creating a tar file with symlinks fails because readlinkat is missing.
boulund commentedon Apr 10, 2016
Just as a note if someone else stumbles upon this: this also affects installation of Miniconda using Continuum Analytics Miniconda installation shell script that extracts a tar archive containing symlinks.
You get errors like this:
davidkrider commentedon Apr 10, 2016
Having the same trouble installing RVM. I can download the zip version and install manually, but I get a warning at the end of the install:
* WARNING: you are missing '/dev/fd' it is important for shell scripting used by RVM,You can fix it on most linux systems with:ln -sf /proc/self/fd /dev/fd/proc/self/fd does exist, but following those instructions gives me:
root@localhost:~# ln -s /proc/self/fd /dev/fdln: failed to create symbolic link ‘/dev/fd’: Operation not permittedThis is a different error. I make a note here wondering if the (internal) fix would address this, or if we're into some unsupported behavior in the /proc filesystem now.
I got RVM installed manually, but, of course, it wants to install rubies from tar-ed sources, which loops me back around to the original problem, and I'm tired of fighting it.
SvenGroot commentedon Apr 10, 2016
DunKirk, that error is due to some limitations of our /dev filesystem that prevent you from creating a link there. We're working to address this. This is separate from the symlinkat error.
27 remaining items
perlun commentedon Apr 25, 2016
sudo apt-get upgrade ubuntu-on-windows😉russalex commentedon Apr 27, 2016
This looks to be fixed. Try it with the new 14332 build.
tinysun212 commentedon Apr 27, 2016
It works finally!
It seems that the problem I presented in beginning is solved. If there is no objection, I will close this issue in this weekend.
Thanks you WSL team, that's totally awesome!
julihermes commentedon Apr 27, 2016
its fixed in the new build?
mrdrmmn commentedon May 17, 2016
This doesn't appear to be completely fixed or has been reverted. I am running build 14342.rs1_release.160506-1708.
This can be tested in the following way:
JUPITER:
/tmp$ ls/tmp$ echo FOO > tmp1JUPITER:
JUPITER:
/tmp$ ln -s tmp1 tmp2/tmp$ grep -r FOO ./JUPITER:
./tmp1:FOO
grep: ./tmp2: Invalid argument
tinysun212 commentedon May 17, 2016
Good detection!
This thread is for the combination of symlink and 'tar', not for all things related to symlink or tar.
Please create new issue with title like 'grep with symbolic links'.
benhillis commentedon May 17, 2016
@therevmj Han Sang-jin (@tinysun212) I tried this repro internally and verified that this is now working. The fix will be making its way to a windows insider build soon.
perlun commentedon May 18, 2016
Sorry to be a bit OT, but how do you push your insider machine to download the latest build? Mine is still running the "original" 160402 (or so) release, meaning I don't have the symlink fixes etc...
hfaran commentedon May 18, 2016
Per Lundberg (@perlun) http://www.cnet.com/how-to/change-to-the-fast-ring-for-more-frequent-windows-10-preview-updates/
perlun commentedon May 18, 2016
Hamza Faran (@hfaran) - thanks. The problem is I am already on the fast ring, but the updates don't seem to be coming. And I cannot find a way to manually force them to come. Any suggestions?