LxRunOffline: Error: 0x80070002 when I try to install Ubuntu

I download file from https://wsldownload.azureedge.net/16.04.2-server-cloudimg-amd64-root.tar.gz then use LxRunOffline to install it. lxrunoffline install -n Ubuntu -d A:\WSL\Ubuntu -f A:\16.04.2-server-cloudimg-amd64-root.tar.gz However, it crashed. Then when I use command bash, there is an error: 0x80070002. Since command lxrun /uninstall /full can’t work now, I wonder how can I uninstall this wrong installation? Any help will be truly appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 20 (11 by maintainers)

Most upvoted comments

@MtMao

Your Ubuntu installation is corrupt so LxRunOffline wants to delete the directory containing itself. To solve this, run LxRunOffline unregister -n Ubuntu then delete the rootfs directory which is in the same directory as LxRunOffline.exe.

Where is your LxRunOffline executable and did you get LxRunOffline using Chocolatey? Generally such corrupt installation will occur if LxRunOffline fails to move data to your specified installation directory. Currently the chocolatey package is problemetic and I’m waiting for its moderators to approve my new package version.