WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Windows 10 1903 Update Deleted WSL Installation

Open XerTheSquirrel opened this issue 7 years ago • 51 comments

  • Your Windows build number: Microsoft Windows [Version 10.0.18362.116]
  • What you're doing and what's happening: I was trying to launch WSL after updating Windows to 1903 but it fails to start because it says there are no distrubutions. The Debian installation directory is gone as well.
  • What's wrong / what should be happening instead: WSL fails to start and the Debian installation was deleted/cleared out.

XerTheSquirrel avatar May 22 '19 15:05 XerTheSquirrel

@XerTheSquirrel - Uggh, the store folks assured me this bug was fixed. Did you happen to launch Debian very shortly after the update?

benhillis avatar May 22 '19 15:05 benhillis

@XerTheSquirrel - Uggh, the store folks assured me this bug was fixed. Did you happen to launch Debian very shortly after the update?

I did yes...

XerTheSquirrel avatar May 22 '19 15:05 XerTheSquirrel

Thanks. The issue is that Windows is doing some work on it's repository of installed packages in the background, and while that is happening WSL queries the package repository and it says Debian is not installed.

I am very sorry about this, I will follow up with the store team to see if they are aware this race still exists.

benhillis avatar May 22 '19 15:05 benhillis

Thanks. The issue is that Windows is doing some work on it's repository of installed packages in the background, and while that is happening WSL queries the package repository and it says Debian is not installed.

I am very sorry about this, I will follow up with the store team to see if they are aware this race still exists.

It is what it is, just going to be reinstalling Debian now.

XerTheSquirrel avatar May 22 '19 16:05 XerTheSquirrel

I will note that I have an automated task which is set to run when the computer is started, it just runs /etc/rc.local since I need a few services active as soon as possible. Note that this was active before, during, and after the installation of the update. I will note that "All Tasks History" was disabled, so I do not know the exact times when the tasks have started.

This is the exported task: Linux RCLocal.zip

XerTheSquirrel avatar May 22 '19 17:05 XerTheSquirrel

I also had WSL disappear after installing 1903. I had Ubuntu installed, which was gone after upgrading to 1903.

I did not try to start Ubuntu shortly after the upgrade, it was not there. Not too bad, since it's a new computer and I hadn't installed too much yet, but a bit annoying.

haakoo avatar Jun 05 '19 16:06 haakoo

Yes, the upgrade created a Windows.Old folder, but I did expect Ubuntu to still be installed and available after the upgrade, like the other Microsoft Store apps.

haakoo avatar Jun 05 '19 17:06 haakoo

I had looked in Windows.Old however it seemed to have only kept configuration data. It was really small in size and had no root filesystem in it at all.

XerTheSquirrel avatar Jun 06 '19 18:06 XerTheSquirrel

The file system is in %LOCALAPPDATA% packages. Showed up in JDiskReport 😁

Trass3r avatar Jun 06 '19 18:06 Trass3r

Just happened to me updating to 18980.1 Has put me right off WSL I'm afraid.

fergalmoran avatar Sep 16 '19 07:09 fergalmoran

I have met the same issue here. Suddenly I can not use WSL. I thought it was an issue with wsltty I am using.

But it seems that Ubuntu on Windows is erased somehow after a Windows update. I have to reinstall Ubuntu on Windows to start the Ubuntu terminal successfully.

jdhao avatar Oct 11 '19 12:10 jdhao

I got my WSL Debian "deleted" in 1809 and not after update from 1709, but just today. This is corpo-managed Windows installation and the only windows update installed between yesterday and today is some Microsoft Office 365 stuff, so completely WSL unrelated. Some files are still in %user%\AppData\Packages\Debian*\LocalState\rootfs, but ProgramData\Packages\Debian\ is almost empty but Debian store app (it was installed from Store) is shown to be installed.

Now, more important question - if I install some linux distro not via Microsoft Store, but using third party https://github.com/DDoSolitary/LxRunOffline, is there a chance Windows update will NOT be screwing with such WSL installation? Or there is no workaround for this bug, and until it's fixed (in some future Windows build), I am to expect my Linux environments to be deleted randomly?

reavertm avatar Oct 30 '19 12:10 reavertm

I didn't get my full distro deleted, but it reverted the distro back to it's pristine "just installed from store" state.

Any of my files or packages I had on the distro that weren't specifically mounted to one of my physical disk drives are gone.

(Just happened today)

LongLiveCHIEF avatar Nov 10 '19 17:11 LongLiveCHIEF

The same thing happened to me. My Ubuntu 18.04 WSL installation just reverted to its "factory" status.

KaiSD avatar Nov 12 '19 20:11 KaiSD

Hi all, I've faced this problem today. I found my files in C:\Users\<username>\AppData\Local\lxss\. Unfortunately, because is Windows filesystem, all permissions on the files are lost. But at least, not the files itself. And the libraries... have to install them again.

blackakula avatar Nov 13 '19 09:11 blackakula

It seems like I'm not so lucky.

KaiSD avatar Nov 13 '19 21:11 KaiSD

WSL installation gone today on 18362.476 while experimenting with getting Task Scheduler to start an ssh server on WSL during Windows start up/log on. Replaced by a new installation. Home directory seemingly lost.

saolaolsson avatar Nov 15 '19 10:11 saolaolsson

I'm using Windows 10 Pro version 1903 and found WSL to be disabled after installing an update yesterday.

slikts avatar Nov 17 '19 00:11 slikts

Windows Update applied KB4534132 and KB4528760 to my Windows 10 (1903) laptop this morning and then prompted me to reboot. After rebooting, my Ubuntu 18.04 distro is no longer available under WSL. (Ubuntu 18.04 does still show up under Add/Remove programs but there are no files available under C:\Users<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs or C:\Users\0017919\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState.)

Launching WSL gives me the following error:

There is no distribution with the supplied name.

Running "wsl /?" displays the following error:

Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

This is extremely disappointing as I had everything set up to do development within WSL and now it appears that Windows Update wiped everything out and I'll need to start over. This is completely unacceptable and it's making me consider switching back to Linux as my primary OS.

To get WSL working again, I uninstalled WSL, uninstalled Ubuntu 18.04, uninstalled KB4528760, rebooted, installed WSL, installed Ubuntu (which actually is version 18.04), rebooted and launched Ubuntu and it failed. Then I reset Ubuntu through the advanced menu under "Apps & Features" in Windows Settings. Now it's working and I can start re-configuring everything that I had set up in Ubuntu. This was a huge time sink and something that should NEVER have happened. Now I'm paranoid about applying any more Windows Updates.

microngust avatar Feb 03 '20 17:02 microngust

Adding another irritated voice, my Ubuntu distro seemingly deleted itself with no warning, leading to a bunch of failing scripts and lost configuration.

tim-elmer avatar Feb 24 '20 23:02 tim-elmer