-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WSL1/2] Import error due to hard links #4457
Comments
additional testing: I really think, somehow, the issue is with |
There is no |
thanks for the feedback and actually I do it a bit differently (do not pass by tar.xz to tar.gz at all): docker run -it --name wslclear clearlinux
swupd update # and I normally add some other basic bundles from docker image
exit
docker export -o wslclear.tar wslclear
wsl.exe --import wslclear ./wslclear ./wslclear.tar Something like that is my default distro creation :) Finally, by tar.exe (and you're totally right it doesn't exist), I meant the bsdtar used during --import. I'll make more tests in the meantime, and hopefully a solution is near :) |
Is there any update to this? I have the same problem. |
Make sure you open terminal as administer, otherwise you will not able to import properly. :) |
Neither this issue nor #4909 have CLI repro steps to exhibit 'Hard-link target does not exist', which would give this issue hope if not resolution. |
I'm getting this same error now, after "GA".
Any ideas, or should I just delete it and start over fresh? Any steps I can do to get better debug data? |
@haakoo : I got very similar errors also all in
Logging into WSL to remove ruby manually and trying again... WORKED FOR ME |
This is the error I got when I tried to run wsl --set-version Ubuntu 2 (update) that did not work either. |
@ckhordiasma , I did it and it worked: https://stackoverflow.com/questions/5902488/uninstall-old-versions-of-ruby-gems |
ok, if I'm understanding this correctly, I need to clean up/uninstall old versions of rdoc, power_assert, net-telnet, minitest, and fileutils? |
ok so I had to reinstall ruby, and then tried cleaning up rdoc, power_assert, net-telnet, minitest, and fileutils. That didn't work, so then I uninstalled them with That didn't work either, then I noticed that the error message actually changed a bit:
So now I'm trying to the uninstall etc, did_you_mean, csv, bigdecimal gems and see how that works. edit - that worked! so basically I checked the error message for ruby gems causing the problem, and iteratively removed gems until I was able to fix it. |
That did it for me: |
Even after uninstalling as many of the gems as I could (some were default; using |
I experienced the same. I did:
|
Importing the distribution failed. I got this error. any idea to solve it?.. I see some post mentioning storage issue and now I have 14G left in my disk. Not sure if this relate. |
I get a similar issue during the conversion from WSL 1 to WSL 2 with an Arch Linux-based WSL image:
I don't understand why the conversion to WSL 2 should care about these files above... |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Important: Do not open GitHub issues for Windows crashes (BSODs) or security issues. Please direct all Windows crashes and security issues to secure@microsoft.com. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
Please fill out the below information:
Your Windows build number: (Type
ver
at a Windows Command Prompt)What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Version 1803 build 18970
What's wrong / what should be happening instead:
When loading Clearlinux rootfs.tar on WSL 1 and 2, it ends abruptly with
unexpected error
instead of loading the distro.For WSL launch issues, please collect detailed logs.
wslcl.zip
Attached are the 3 log files, and here is a sample of the error:
sbin: Hard-link target 'bin' does not exist.
usr/bin/b2sum: Hard-link target 'usr/bin/[' does not exist.
usr/bin/base32: Hard-link target 'usr/bin/[' does not exist.
usr/bin/base64: Hard-link target 'usr/bin/[' does not exist.
usr/bin/basename: Hard-link target 'usr/bin/[' does not exist.
usr/bin/basenc: Hard-link target 'usr/bin/[' does not exist.
usr/bin/bzcat: Hard-link target 'usr/bin/bunzip2' does not exist.
usr/bin/bzfgrep: Hard-link target 'usr/bin/bzegrep' does not exist.
the hard links come from the fact that Clearlinux uses
coreutils
in the default bundleos-core
While the executables can be copied instead of the hard links, the libraries have the same setup (
/lib
points to/usr/lib
).I do have Clearlinux in WSL1 since the build 18305, but even if I export and import it again, it will also fail.
Thanks in advance for your help :)
WSL Corsair
The text was updated successfully, but these errors were encountered: