Error 0x8007019e the windows subsystem for linux has not been enabled


— by: C. Smith

If you are trying the Linux Subsystem for Windows feature for the first time, you will probably receive the following error message when you boot any Linux distribution:

Installing, this may take a few minutes…
WslRegisterDistribution failed with error: 0x8007019e
Error: 0x8007019e The Windows Subsystem for Linux has not been enabled.

Plenty of developers face this problem regardless of the web technology used. So this is not a node.js, angular, express, web

This is true even if you have enabled virtualization in the BIOS. The error occurs because WSL is not enabled by default, so you have to do it yourself.

To do this, open the start menu and start typing Turn Windows feature on or off .

Turn Windows feature on or off

Click on the result to open and scroll to the bottom of the list. You need to enable two features:

  • Virtual Machine Platform
  • Windows Subsystem for Linux

Enable required features

The installation is quick, just a few seconds. After that, you have to restart Windows.


You may encounter the WSLRegisterDistribution Failed error due to the disabled subsystem for the Linux. Moreover, a corrupt installation of the Linux distro application may also cause the error.

The affected user gets the error when he tries to launch the Linux terminal with the following message:

WslRegisterDistribution failed with error 0x8007019e

Before proceeding with the troubleshooting process, try to launch the Linux console using the Windows Search bar (located on the Taskbar of your system), not by the bash.

Solution 1: Enable/Disable Subsystem for Linux

Windows has a feature “Subsystem for Linux” which is essential for the operation of your Linux distribution. If the said option is not enabled, then you may encounter the error at hand. In this case, enabling the option of the subsystem for Linux may solve the problem.

  1. On the Taskbar, click on the Windows Search bar and type Control Panel. Then in the results shown, click on Control Panel.
    Open Control Panel
  2. Now click on Uninstall a Program.
    Click Uninstall a Program in Control Panel
  3. Then, in the left pane of the window, click on Turn Windows Feature on or off.
    Turn Windows Feature on or off
  4. Now, scroll down till the end and enable Windows Subsystem for Linux Option.
    Enable Windows Subsystem For Linux
  5. Then restart your system and then check if the system is clear of the error.
  6. If the option is already enabled at step 4, then disable it and restart your system.
  7. Upon restart, enable the Subsystem option and then restart your system.
  8. Upon restart, check if the Linux distro is working fine.

Solution 2: Restart the LxssManager Service

Linux instance life cycle service i.e. LxssManager operates in the background to keep things under control. You may encounter the error at hand if the said service is stuck in operation or is in an error state. In this scenario, restarting the service may clear the glitch and thus solve the problem.

  1. Press Windows + R keys to bring out the Run command box.
  2. Now type Services.msc and then click on OK.
    Type “services.msc” into the Run dialog and press Enter
  3. Now find and restart the LxssManager service.
    Restart Lxss Manager Service
  4. Then relaunch the terminal to check if it is clear of the error.

Solution 3: Launch the Subsystem from Microsoft Store

Linux distribution has a bug, in which, sometimes the terminal starts to show the error at hand when launched from the shortcut/command prompt. This glitch can be cleared by launching the application directly from the Microsoft Store interface.

  1. On the Taskbar of your system, click on Windows Search box and type Microsoft Store. Then in the list of results shown, click on Microsoft Store.
    Open Microsoft Store
  2. Then, in the top right corner of the window, click on the horizontal Ellipses and then click on My Library.
    Open My Library in Microsoft Store
  3. Now in the left pane of the window, click on Installed.
    Open the Installed Tab in My Library
  4. Then in the right pane of the window, click on your Linux distro App.
  5. Now click on the Launch button and then check if the issue has resolved.
    Launch the Linux Console Application from the Microsoft Store

Solution 4: Update the Linux Terminal by Using Command Prompt

You may encounter the error under discussion if you are using an older version of the distribution. In this context, updating the application may solve the issue. You can use the Command Prompt to achieve the same without reinstalling the application.

  1. On the Taskbar of your system, click on the Windows Search box and type Command Prompt. Then in the results shown, right-click on Command Prompt and then in the sub-menu, click on Run as Administrator.
    Open Command Prompt from Windows Search
  2. Now type the following commands in the Command Prompt and press the enter key after each command:
    C:\> bash
    
    $ sudo apt-get update
    
    $ sudo apt-get dist-upgrade
    
    $ <CTRL-D>
    
    C:\> exit
  3. Now, launch the terminal to check if it is clear of the error.

Solution 5: Repair the Linux Terminal App

If nothing has helped you so far, then the issue may have been caused by a corrupt installation of the Linux distribution app. To overcome such corruption, the Repair feature of Windows Settings can be used which will then solve the problem.

  1. Right-click on the Windows button and click on Settings.
    Open Windows Settings
  2. Then tap on Apps.
    Open Apps in Windows Settings
  3. Now, find and click on your Linux Distribution Application, e.g., if you are using Ubuntu, click on Ubuntu. Then click on Advanced Options.
    Open Advanced Settings of the Linux Distribution Application
  4. Now, scroll down till the end and click on the Repair button.
    Repair the Linux Distribution Application
  5. After repairing the distro, check if it is clear of the error.
  6. If not, open Advanced Options (step 1 to 2).
  7. Then, scroll down till the end and click on the Reset button (your data/settings will be lost).
    Reset the Linux Distribution Application
  8. Now, launch the distro to check if it is clear of the error.

Solution 6: Reinstall the Linux Console Application

If the repairing of the Linux console has not solved the issue, then the corrupt module of the application is beyond repairing and you have to manually uninstall and then reinstall the application to solve the problem.

  1. Right-click on the Windows button and click on Settings.
  2. Now, find and click on your Linux Distribution Application, e.g., if you are using Ubuntu, click on Ubuntu. Then click on Uninstall.
    Uninstall the Linux Distribution Application
  3. After uninstalling, disable the Subsystem for Linux  Option (as discussed in solution 1) and restart your system.
  4. Upon restart, enable the Subsystem for Linux (as discussed in solution 1).
  5. Now install your Linux Console Application and hopefully, your issue has been resolved.

If nothing has worked for you, then you may have to Reset your Windows PC or perform a clean installation of Windows.

Photo of Kevin Arrows

Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Easily enable the Windows Subsystem for Linux

by Hasibul Kabir

Hasibul Kabir is a Tech-Enthusiast Blogger, Web Developer & Hobbyist Game Developer. Writing about Technology, mainly Windows, Mac, iOS, etc., is his main focus, besides doing some computer… read more


Updated on

  • When you try to launch something that requires Windows Subsystem for Linux, you may get an error indicating that this optional feature is not enabled.
  • Enabling this feature can be necessary and will not slow down your PC’s performance.
  • To turn on this feature on Windows, you can use PowerShell and another method described in this article.

fix the windows subsystem for linux optional component is not enabled

XINSTALL BY CLICKING THE DOWNLOAD
FILE

Usually, when you try to run any software, service, or app that requires the Linux environment, you may get an error.

In most cases, if you install the Ubuntu app from the Microsoft Store and open it, this problem will appear. When it occurs, you get the following message: The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.

It also may show an error code 0x8007019e. But don’t worry, you can easily fix this problem if you take the proper steps.

Does the Windows Subsystem for Linux slow down a PC?

To make your development work much more pleasant, you may enable WSL. It does not hurt Windows performance.

How we test, review and rate?

We have worked for the past 6 months on building a new review system on how we produce content. Using it, we have subsequently redone most of our articles to provide actual hands-on expertise on the guides we made.

For more details you can read how we test, review, and rate at WindowsReport.

Any services in the background take a few computing resources. The WSL is not different. However, according to the users, it doesn’t slow down the PC.

We have tested it by ourselves. Our research also has found that modern computers can easily handle Windows Subsystem for Linux without negatively affecting performance.

Moreover, it can be an essential feature for some users. So, you may need to turn it on, particularly when you face the error mentioned in this article.

How do I enable Windows Subsystem for Linux on Windows?

If you want to enable WSL on your PC, you can easily do it. But, before that, we suggest you do the following things:

  • Update Windows to the latest version.
  • Ensure you are using Windows 11 or 10, as other versions don’t support this feature.

Now, you can follow the methods mentioned below to enable Windows Subsystem for Linux.

1. Install the optional feature

  1. Press Win + I on the keyboard to open Windows Settings.
  2. Go to Apps and click on Optional features.going optional features windows 11 settings
  3. Click on More Windows features to open the Windows Features window.going more windows features windows 11 settings
  4. Tick Windows Subsystem for Linux and click on OK.enabling windows subsystem for linux
  5. It will install the required components.
  6. Restart your PC after completing the process.

Alternatively, you also can search for the optionalfeatures on the Start Menu to find and open the Windows Features window. It can be necessary if you don’t find the exact options shown in the above steps.

After enabling the WSL, you can try to open the Ubuntu terminal or any other app or service that was showing the error. Hopefully, you will not see the same again.

2. Use the PowerShell command

  1. Open the Start Menu, type PowerShell, and hit Enter.
  2. Now, type the following command and press Enter to execute it: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxenable windows subsystem for linux using powershell command
  3. Wait for a while.
  4. Restart your PC after PowerShell installs the required features.

Now, verify if it has solved the problem or not. If PowerShell can successfully enable this optional feature, you can use the Ubuntu terminal or any other app that requires WSL without any error.

Read more about this topic

  • Fix: Set Time Zone Automatically Defaults to Wrong Time Zone
  • 0X8007013 Install Error: How to Quickly Fix it
  • Fix: Internet Keeps Disconnecting When Playing Games on Windows 11

3. Enable Developer Mode

Note icon
NOTE

If you are using the latest builds, enabling Developer Mode is no longer necessary. In case you are running an older build, perform the steps below to enable it.

  1. Open Windows Settings.
  2. Go to Privacy & security and click on For developers.going for developers windows 11 settings
  3. Turn the Developer Mode by tweaking the appropriate switch.turning on developer mode windows 11 settings
  4. Click on Yes on the popup window.
  5. Restart your PC.

For more detailed steps, learn how to enable Windows 11 Developer Mode. If the Developer Mode is a requirement, try to enable the latest WSL again and see if it works.

This article has explained how to fix Windows Subsystem for Linux is not enabled. If you have any opinions or suggestions, feel free to let us know in the comments box.

newsletter icon

Wslregisterdistribution — это команда, которая используется в ОС Windows для регистрации дистрибутивов в Windows Subsystem for Linux (WSL). Однако иногда при выполнении этой команды может возникнуть ошибка с кодом 0x8007019e. Эта ошибка указывает на проблему в процессе регистрации дистрибутива WSL и может возникать по разным причинам.

Если Wslregisterdistribution завершился с ошибкой 0x8007019e, первым делом следует попробовать перезапускать компьютер. Иногда это может помочь восстановить нормальное функционирование WSL и устранить ошибку. Также рекомендуется убедиться, что у вас установлена последняя версия ОС Windows и все обновления установлены.

Если перезапуск компьютера не помог, можно попробовать выполнить команду Wslregisterdistribution с административными привилегиями. Для этого следует открыть командную строку или PowerShell от имени администратора и выполнить команду wsl.exe —unregister, а затем wsl.exe —register. Это может помочь исправить проблему с регистрацией дистрибутива WSL и устранить ошибку.

Примечание: Важно понимать, что выполнение команды —register может привести к потере данных в WSL, поэтому перед выполнением этой команды рекомендуется создать резервную копию своих файлов и данных в WSL.

Если перезапуск компьютера и выполнение команды Wslregisterdistribution с административными привилегиями не помогают, возможно, проблема вызвана поврежденными файлами WSL. В этом случае можно попробовать выполнить команду sfc /scannow в командной строке или PowerShell от имени администратора. Эта команда проверит системные файлы и попытается восстановить поврежденные файлы. После выполнения команды следует перезагрузить компьютер и проверить, исправилась ли ошибка.

Если все вышеперечисленные способы не помогли и ошибка 0x8007019e все еще возникает, рекомендуется обратиться за помощью к специалистам в службу поддержки Microsoft или на форумы сообщества пользователей WSL. Они смогут предложить более специализированное и квалифицированное решение проблемы.

Содержание

  1. Проверьте наличие обновлений системы
  2. Перезагрузите компьютер
  3. Удалите и установите WSL заново
  4. Проверьте наличие и состояние служб
  5. Проведите проверку системных файлов
  6. Обратитесь в службу поддержки Microsoft

Проверьте наличие обновлений системы

Ошибка 0x8007019e при запуске WslRegisterDistribution может возникнуть из-за проблем с установкой или обновлением Windows Subsystem for Linux (WSL). Один из способов исправления этой ошибки — проверить наличие обновлений системы.

Вот несколько шагов, которые вы можете предпринять:

  1. Откройте меню «Пуск» и найдите «Настройки».
  2. Нажмите на «Обновление и безопасность».
  3. Перейдите на вкладку «Windows Update».
  4. Нажмите на кнопку «Проверить наличие обновлений».
  5. Дождитесь, пока система выполнит поиск доступных обновлений.
  6. Если обновления найдены, установите их и перезагрузите компьютер.

После установки обновлений попробуйте снова выполнить команду WslRegisterDistribution и проверьте, решена ли проблема. Если ошибка по-прежнему возникает, попробуйте другие методы исправления.

Перезагрузите компьютер

Если при выполнении команды wsl --set-version <имя_дистрибутива> <версия> в Windows Subsystem for Linux (WSL) вы получили ошибку wslregisterdistribution завершился с ошибкой 0x8007019e, вам может помочь перезагрузка компьютера.

Перезагрузка компьютера может помочь восстановить функциональность WSL, поскольку она может устранить временные проблемы, которые могут возникнуть после выполнения некоторых команд или изменений в системе.

Чтобы перезагрузить компьютер:

  1. Сохраните все открытые файлы и закройте все программы, чтобы предотвратить потерю данных.
  2. Нажмите на кнопку «Пуск» в левом нижнем углу экрана.
  3. Выберите опцию «Включение» или «Выключение» в основном меню.
  4. Нажмите на кнопку «Перезагрузка».
  5. Подождите, пока компьютер полностью выключится и затем снова включится.

После перезагрузки компьютера попробуйте выполнить команду wsl --set-version <имя_дистрибутива> <версия> снова и проверьте, решена ли проблема. Если проблема не решена, вам может потребоваться произвести дополнительные действия, такие как переустановка WSL или обновление системы.

Помимо перезагрузки компьютера, также рекомендуется проверить, что у вас установлена последняя версия Windows и все доступные обновления системы.

Если проблема сохраняется после перезагрузки компьютера, вы можете обратиться к официальной документации Microsoft или сообществу пользователей WSL для получения дополнительной помощи.

Удалите и установите WSL заново

Если у вас возникла ошибка 0x8007019e при выполнении команды wslregisterdistribution, одним из решений может быть полное удаление и повторная установка Windows Subsystem for Linux (WSL). Вот как это сделать:

  1. Откройте окно PowerShell от имени администратора. Для этого нажмите Win + X, а затем выберите «Windows PowerShell (администратор)».
  2. Выполните следующую команду, чтобы удалить все существующие дистрибутивы WSL:
wsl --unregister <имя_дистрибутива>

Убедитесь, что вы заменяете <имя_дистрибутива> на фактическое имя дистрибутива, который вы хотите удалить. Примеры имен дистрибутивов: Ubuntu, Debian, OpenSUSE и т. д.

  1. Выполните следующую команду, чтобы удалить и отключить подсистему WSL полностью:
dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /quiet
  1. Перезагрузите ваш компьютер, чтобы завершить удаление WSL.
  2. После перезагрузки откройте окно PowerShell от имени администратора и выполните следующую команду, чтобы включить WSL снова:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /quiet
  1. После завершения выполнения команды перезагрузите компьютер.
  2. Когда компьютер загрузится снова, откройте окно PowerShell от имени администратора и выполните команду:
wsl --install

Эта команда установит последнюю версию WSL.

После завершения установки вы сможете использовать WSL снова. У вас будет возможность установить необходимый дистрибутив Linux и настроить его по вашим потребностям.

Проверьте наличие и состояние служб

Ошибка 0x8007019e может возникать в случае, когда одна из служб, необходимых для работы WSL (Windows Subsystem for Linux), не работает корректно. Чтобы исправить эту ошибку, важно проверить наличие и состояние следующих служб:

  • LxssManager: Данная служба отвечает за управление и запуск Linux-дистрибутивов в WSL. Проверьте, что служба запущена и работает без ошибок. Чтобы проверить состояние службы, выполните следующие шаги:

    1. Нажмите комбинацию клавиш Win + R, чтобы открыть окно «Выполнить».
    2. Введите команду services.msc и нажмите клавишу Enter.
    3. В открывшемся окне «Службы» найдите службу LxssManager.
    4. Проверьте, что статус службы указан как «Запущено».
    5. Если служба не запущена, щелкните правой кнопкой мыши на службе LxssManager и выберите пункт меню «Запустить».
    6. Если служба запущена, но вы видите ошибки, попробуйте перезапустить службу.
  • WslSvc: Эта служба отвечает за взаимодействие между WSL и файловой системой Windows. Убедитесь, что служба запущена и работает без ошибок. Для этого выполните следующие действия:

    1. Откройте окно «Выполнить» с помощью комбинации клавиш Win + R.
    2. Введите команду services.msc и нажмите клавишу Enter.
    3. Найдите службу WslSvc.
    4. Убедитесь, что статус службы указан как «Запущено».
    5. Если служба не запущена, щелкните правой кнопкой мыши на службе WslSvc и выберите пункт меню «Запустить».
    6. Если служба запущена, но вы видите ошибки, попробуйте перезапустить службу.

Проверьте наличие и состояние указанных выше служб. Если службы отображаются как работающие или вы не можете запустить или перезапустить службы, попробуйте выполнить следующие действия:

  1. Проверьте, что у вас есть права администратора на компьютере. Для этого щелкните правой кнопкой мыши по кнопке «Пуск» и выберите пункт «Windows PowerShell (администратор)».
  2. Выполните команду sc config LxssManager start=auto в открывшемся окне командной строки. Эта команда устанавливает стартовый тип службы LxssManager как «автоматический».
  3. Выполните команду sc config WslSvc start=auto в командной строке для установки стартового типа службы WslSvc как «автоматический».
  4. Перезагрузите компьютер и проверьте, исправилась ли ошибка.

Если после перезагрузки компьютера ошибка все еще возникает, возможно, есть другие проблемы, которые могут потребовать дополнительного решения. Рекомендуется обратиться за помощью к официальной документации Microsoft или форумам сообщества пользователей Windows.

Проведите проверку системных файлов

Ошибка 0x8007019e может возникать из-за повреждения системных файлов операционной системы. Чтобы исправить эту проблему, необходимо провести проверку целостности системных файлов и восстановить поврежденные файлы.

  1. Откройте командную строку от имени администратора.
  2. Нажмите Windows + X на клавиатуре и выберите «Командная строка (администратор)» из контекстного меню.

  3. Запустите проверку целостности системных файлов.
  4. Введите команду sfc /scannow и нажмите клавишу Enter. Дождитесь завершения процесса проверки и восстановления файлов. Это может занять некоторое время.

  5. Перезагрузите компьютер.
  6. После завершения проверки и восстановления файлов, перезагрузите компьютер, чтобы изменения вступили в силу.

После перезагрузки компьютера проверьте, возникла ли ошибка 0x8007019e при запуске Wslregisterdistribution. Если проблема продолжается, возможно, вам потребуется выполнить более подробную диагностику вашей операционной системы или обратиться к технической поддержке Microsoft.

Обратитесь в службу поддержки Microsoft

Если при выполнении команды «wsl —set-version <имя дистрибутива> <версия>» возникла ошибка 0x8007019e, то одним из возможных решений проблемы может быть обращение в службу поддержки Microsoft.

Служба поддержки Microsoft предоставляет профессиональную помощь пользователям продуктов и сервисов компании Microsoft. Если вы столкнулись с проблемой установки или использования Windows Subsystem for Linux (WSL) и не можете ее решить самостоятельно, обратитесь в службу поддержки Microsoft для получения квалифицированной помощи.

Чтобы обратиться в службу поддержки Microsoft, вы можете воспользоваться следующими способами:

  1. Посетите официальный веб-сайт Microsoft и найдите раздел «Служба поддержки». Там вы найдете контактную информацию и сможете выбрать подходящий способ обратиться в службу поддержки, например, чат, электронную почту или телефон.
  2. Воспользуйтесь поиском на официальном сайте Microsoft, чтобы найти ответы на свои вопросы или узнать о уже известных проблемах и их решениях.
  3. Проверьте форумы и сообщества пользователей, где вы можете задать свой вопрос или обратиться за помощью. Многие пользователи и специалисты также могут помочь вам решить проблему с WSL и поделиться своим опытом.

Обратившись в службу поддержки Microsoft, вы получите подробную и конкретную помощь в решении проблемы с WSL и другими продуктами Microsoft. Служба поддержки Microsoft всегда готова помочь вам с любыми вопросами и проблемами, связанными с продуктами и сервисами компании.

Подсистема WSL или Windows для Linux для Windows 10 — отличный инструмент для разработчиков. Но иногда при запуске командной строки выдает код ошибки 0x8007019e или же 0x8000000d. Хотя ошибка кажется, что это проблема с установкой WSL, но это может быть ложное срабатывание. У некоторых пользователей был установлен WSL, но они все еще сталкивались с проблемой. Код ошибки гласит:

Установка может занять несколько минут…
WslRegisterDistribution завершился с ошибкой: 0x8007019e / 0x8000000d
Ошибка: 0x8007019e / 0x8000000d Параметр неверен.
нажмите любую клавишу чтобы продолжить.

Эта ошибка возникает из-за отсутствия поддержки функций Windows 10. Ошибка даже не позволяет использовать командную строку на основе WSL. В этой статье мы рассмотрим, как исправить эту ошибку в Windows 10.

WslRegisterDistribution завершился с ошибкой: 0x8007019e & 0x8000000d

Пользователь должен будет включить Подсистема Windows для Linux функция для устранения этой проблемы. Это можно сделать двумя способами:

  1. Включение WSL с помощью включения или выключения функций Windows.
  2. Использование Windows PowerShell.

1] Включите WSL с помощью Включение или отключение функций Windows

Чтобы включить функцию подсистемы Windows для Linux с помощью диалогового окна Включение или отключение компонентов Windows, вам необходимо выполнить поиск Включение и отключение компонентов Windows в поле поиска Windows.

В заполненном списке отметьте опцию для Подсистема Windows для Linux. Выбирать ОК.

Он найдет и установит некоторые необходимые системные файлы и попросит вас перезагрузить компьютер. После перезагрузки компьютера ваш дистрибутив Linux будет работать без проблем.

2] Использование Windows PowerShell

Откройте Windows PowerShell с правами администратора. Выполните следующую команду, чтобы включить функцию подсистемы Windows для Linux:

Включить-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Он начнет поиск и установку некоторых необходимых системных файлов.

При появлении запроса вам нужно ввести к перезагружать твой компьютер.

Он установит все необходимые системные файлы, и ваш дистрибутив Linux обычно будет работать сейчас.

Я надеюсь, что это руководство помогло вам.

Аналогичный WslRegisterDistribution завершился ошибкой: 0xc03a001a | 0x80041002 | 0x800700b7 или 0x80080005 | 0x80070422 | 0x80370114 | 0x80370102 | 0x80070003 | 0x80070032 | 0x8007023e | 0x800701bc.

  • Error 0x80041003 windows 7 что это
  • Error 0x80004005 windows 10 update
  • Err ssl version or cipher mismatch windows xp
  • Err ssl protocol error windows 10
  • Err proxy connection failed windows 10