Skip to content
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

Import error Ubuntu 20.10 #142

Closed
happysat opened this issue Aug 22, 2020 · 7 comments
Closed

Import error Ubuntu 20.10 #142

happysat opened this issue Aug 22, 2020 · 7 comments

Comments

@happysat
Copy link

Trying to import previously made backup results in:

[ERROR] Couldn't create the file "\?\C:\Ubuntu-20.10\rootfs\usr\lib\systemd\system\system-systemd\x2dcryptsetup.slice".
Reason: The system cannot find the path specified.

Guessing the * is a showstopper in filename x2dcryptsetup*.slice
Removing this file and backup/import again works.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Aug 22, 2020

It seems that the name of that file is system-systemd\x2dcryptsetup.slice and the \ character is incorrectly interpreted as a path separator:

$ tar tvzf Downloads/groovy-server-cloudimg-amd64-wsl.rootfs.tar.gz | grep x2d
-rw-r--r-- root/root         434 2020-07-31 03:02 usr/lib/systemd/system/system-systemd\\x2dcryptsetup.slice

@happysat
Copy link
Author

Yes indeed, it also happens with 20.04.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Aug 23, 2020

Well, I did some debugging and it turns out that it's libarchive's fault. My code passes the correct path to libarchive but it silently converts any backslashes in it to forward slashes: libarchive/libarchive@6c8b326

It seems to be impossible to remove this behavior without patching libarchive's source code.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Aug 23, 2020

@happysat Please try this build: https://dl.bintray.com/ddosolitary/dev-releases/LxRunOffline/LxRunOffline-v3.5.0-7-gf1a59d4-msvc.zip
It uses a patched version of libarchive and should have the issue fixed.

@happysat
Copy link
Author

Import works now, i tried a fresh build no problems.
Thanks for fixing DDoSolitary!

@Carsten87
Copy link

@DDoSolitary thanks for the great Tool. I ran into the same issue. Will this fix be released soon? The link to the patched build seems to be dead: https://dl.bintray.com/ddosolitary/dev-releases/LxRunOffline/LxRunOffline-v3.5.0-7-gf1a59d4-msvc.zip

@DDoSolitary
Copy link
Owner

DDoSolitary commented Nov 5, 2020

@Carsten87 I changed hosting site of my dev builds. Now the files are available here: https://ddosolitary-builds.sourceforge.io/LxRunOffline/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants