Genomics-CRT / Data-Science-For-Life-Science

CRT outreach program to assist life scientists in learning basic data science skills.
28 stars 44 forks source link

Installing a Windows Subsystem for Linux #6

Closed Emily-Purcell closed 4 years ago

Emily-Purcell commented 4 years ago

Hi there :) I am getting this error when I run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

error

Any suggestions?

iseultj commented 4 years ago

Hi there :) I am getting this error when I run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

error

Any suggestions?

Hi! There seems to be a corruption error, so I think the best way to deal with this is to run the DISM tool for windows to clean things up- If you follow the instructions here: https://support.microsoft.com/en-ie/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness .

In brief you should try to run the command DISM.exe /Online /Cleanup-image /Restorehealth as administrator; this will take a few minutes I think.

Then type sfc /scannow and press enter.

If you have additional issues when running this, the link I pasted in should help you; If it still doesn't work, do come back to me.

Emily-Purcell commented 4 years ago

This worked - thank you!