WSL: Cannot revert to WSL1

Converting a WSL2 distro to WSL1 fails:

wsl --set-version Ubuntu 1
Conversion in progress, this may take a few minutes...
The network connection was aborted by the local system.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 5
  • Comments: 15 (4 by maintainers)

Most upvoted comments

For this one, I erased the contents of rootfs in the app data folder where the distro package is installed … On Thu, Aug 1, 2019, 12:05 AM Artin @.***> wrote: [image: image] https://user-images.githubusercontent.com/13938334/62264872-708c3480-b454-11e9-9ef2-f13c39ea9918.png It shows a mklink error: “当文件已存在时,无法创建该文件” translate the error: "Unable to create a file when it already exists — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#4206?email_source=notifications&email_token=AD4R72R6THZQ66C5TC3UNCLQCJOKLA5CNFSM4H2CUDZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3JHTVA#issuecomment-517110228>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4R72XH2PMW24VOCM22IRLQCJOKLANCNFSM4H2CUDZQ .

In my case the path was

C:\Users\{User}\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs

Renamed and it fixed the issue. Thanks!

For this one, I erased the contents of rootfs in the app data folder where the distro package is installed

On Thu, Aug 1, 2019, 12:05 AM Artin notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/13938334/62264872-708c3480-b454-11e9-9ef2-f13c39ea9918.png It shows a mklink error: “当文件已存在时,无法创建该文件” translate the error: "Unable to create a file when it already exists

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/WSL/issues/4206?email_source=notifications&email_token=AD4R72R6THZQ66C5TC3UNCLQCJOKLA5CNFSM4H2CUDZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3JHTVA#issuecomment-517110228, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4R72XH2PMW24VOCM22IRLQCJOKLANCNFSM4H2CUDZQ .

image It shows a mklink error: “当文件已存在时,无法创建该文件” translate the error: "Unable to create a file when it already exists

Also happened to me on build 18945. Conversion was successful on the third try.

Thanks for the additional info. I’m virtually certain that I’ve fixed this issue, stay tuned for a future Insiders build.