Sheds with no windows

Содержание
  1. Fix problems in Windows Search
  2. Check for updates
  3. Run the Search and Indexing troubleshooter
  4. Restart Windows Search or your device
  5. Reset Windows Search
  6. Windows 10, version 1809 and earlier
  7. Windows 10, version 1903 and later
  8. Help us improve Search in Windows 10
  9. Включение и отключение компонентов Windows 10
  10. Работаем с Windows Features
  11. Управление Features on Demand (FOD)
  12. Установка и переустановка пакетов языков (Language Interface Packs, LIP)
  13. Устранение неполадок подсистемы Windows для Linux Troubleshooting Windows Subsystem for Linux
  14. Поиск описанных проблем, связанных с вашей проблемой Search for any existing issues related to your problem
  15. Отправка отчета об ошибке Submit a bug report
  16. Отправка запроса на добавление возможностей Submit a feature request
  17. Участие в разработке документации Contribute to the docs
  18. Терминал или командная строка Terminal or Command Line
  19. Распространенные проблемы Common issues
  20. Я использую Windows 10 версии 1903, но не вижу параметры для WSL 2. I’m on Windows 10 version 1903 and I still do not see options for WSL 2
  21. Ошибка. 0x1bc, когда wsl —set-default-version 2 Error: 0x1bc when wsl —set-default-version 2
  22. Не удается получить доступ к файлам WSL из Windows Cannot access WSL files from Windows
  23. Не удается запустить дистрибутив WSL 2, а в выходных данных отображается только WSL 2. Can’t start WSL 2 distribution and only see ‘WSL 2’ in output
  24. Ошибка command not found при выполнении исполняемых файлов Windows в Linux command not found when executing windows .exe in linux
  25. «Ошибка: 0x80370102 The virtual machine could not be started because a required feature is not installed (Не удалось запустить виртуальную машину, так как не установлена необходимая функция). «Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.»
  26. Bash утрачивает подключение к сети после подключения к сети VPN Bash loses network connectivity once connected to a VPN
  27. При запуске WSL или установке дистрибутива возвращается код ошибки Starting WSL or installing a distribution returns an error code
  28. Обновление Bash для Ubuntu в Windows Updating Bash on Ubuntu on Windows
  29. Ошибки apt-get upgrade Apt-get upgrade errors
  30. «Ошибка: 0x80040306» при установке «Error: 0x80040306» on installation
  31. «Ошибка: 0x80040154» после обновления Windows «Error: 0x80040154» after Windows update
  32. Изменение отображаемого языка Changing the display language
  33. Проблемы установки после восстановления системы Windows Installation issues after Windows system restore
  34. Нет доступа к Интернету в WSL No internet access in WSL
  35. Ошибка «Отказ в разрешении» при проверке связи Permission Denied error when using ping
  36. Bash перестал отвечать на запросы Bash is hung
  37. Проверка номера сборки Check your build number
  38. Подтверждение включения WSL Confirm WSL is enabled
  39. Проблемы с подключением к серверу OpenSSH OpenSSH-Server connection issues
  40. «Указанная сборка не найдена». «The referenced assembly could not be found.» Это сообщение может появиться при включении дополнительного компонента WSL. when enabling the WSL optional feature
  41. Правильные (связанные с SSH) ошибки разрешений Correct (SSH related) permission errors
  42. Выполнение команд Windows завершается сбоем в дистрибутиве Running Windows commands fails inside a distribution
  43. Не удается выполнить загрузку после установки WSL 2 Unable to boot after installing WSL 2

Fix problems in Windows Search

If Windows Search is unresponsive or the search results don’t appear as expected, try any of the following solutions in this article.

If you’re running Windows 10 May 2019 Update (version 1903) or later versions and Windows can detect a problem, we’ll run the Search troubleshooter automatically. This troubleshooter will reset Windows Search back to the default experience. View your troubleshooter history under Settings > Update & Security > Troubleshoot > View History. Follow the steps below if your issue is still not resolved.

Original product version: В Windows 10 — all editions
Original KB number: В 4520146

Check for updates

Windows 10 lets you choose when and how to get the latest updates to keep your device running smoothly and securely. To manage your options and see any available updates, select the Start button, and then go to Settings > Update & Security > Windows Update > Check for updates. Install any available updates, and then restart your computer if the updates require it.

For more information, see Update Windows 10.

Run the Search and Indexing troubleshooter

Your PC automatically indexes content to deliver faster search results. Learn more about Search indexing in Windows 10.

Use the Windows Search and Indexing troubleshooter to try to fix any problems that may arise. To use the troubleshooter, follow these steps:

  1. Select Start, then select Settings.
  2. In Windows Settings, select Update & Security >Troubleshoot. Under Find and fix other problems, select Search and Indexing.
  3. Run the troubleshooter, and select any problems that apply. Windows will try to detect and solve them.

You can also use a command prompt to open the troubleshooter. Press Windows logo key+R, enter cmd in the Open box, and then select OK. At the command prompt, run the following command:

Restart Windows Search or your device

End the SearchUI process to restart Windows Search by following these steps:

  1. Press Ctrl+Alt+Delete, and select Task Manager.
  2. In the Task Manager window, select the Details tab.
  3. In the Name column, right-click SearchUI.exe, and then select End task.
  4. When you’re prompted to end SearchUI.exe, select End process.

The Windows Search process will automatically restart the next time that you search.

If this solution doesn’t fix your problem, try restarting your device. Restarting will also install any pending updates.

You may want to bookmark this page before you restart.

Try resetting Windows Search by using the method that’s appropriate for your version of Windows.

To determine which version of Windows your device is running, follow these steps:

Select Start > Settings > System > About.

Under Windows specifications, check which version of Windows your device is running.

Resetting Windows Search does not affect your files. However, it may temporarily affect the relevance of search results.

Windows 10, version 1809 and earlier

If the Windows 10 October 2018 Update or an earlier update is installed, reset Cortana to reset Windows Search by following these steps:

  1. Select Start, right-click Cortana, select More, and then select App settings.
  2. In the Cortana settings, select Reset.

Windows 10, version 1903 and later

If the Windows 10 May 2019 Update or a later update is installed, use Windows PowerShell to reset Windows Search by following these steps:

You must have administrator permissions to run this script.

Download the ResetWindowsSearchBox.ps1 script from the Reset Windows Search PowerShell script, and save the file to a local folder.

Right-click the file that you saved, and select Run with PowerShell.

If you’re asked the following question, select Yes.

Do you want to allow this app to make changes to your device?

The PowerShell script resets the Windows Search feature. When the word Done appears, close the PowerShell window.

If you receive the following error message:

Cannot be loaded because running scripts is disabled on this system

enter the following command on the command line of the PowerShell window, and then press Enter:

The current policy appears in the window. For example, you might see Restricted. We recommend that you note this value because you’ll have to use it later.

Enter the following command on the command line of the PowerShell window, and then press Enter:

You’ll receive a warning message that explains the security risks of an execution policy change. Press Y, and then press Enter to accept the change.

To learn more about PowerShell execution policies, see About Execution Policies.

After the policy change is completed, close the window, and then repeat steps 2-4. However, when the Done message appears this time, DON’T close the PowerShell window. Instead, press any key to continue.

Revert to your previous PowerShell execution policy setting. Enter the following command on the command line of the PowerShell window, press the Spacebar, enter the policy value that you noted in step 5, and then press Enter:

For example, if the policy that you noted in step 5 was Restricted, the command would resemble the following one:

You’ll receive a warning message that explains the security risks of an execution policy change. Press Y, and then press Enter to accept the change and revert to your previous policy setting.

Close the PowerShell window.

If your organization has disabled the ability to run scripts, contact your administrator for help.

Help us improve Search in Windows 10

If the previous suggestions don’t fix the problem, let us know by sending feedback in the Feedback Hub. Provide details, such as a description of the problem, screenshots, log files, and any other information that might be helpful. In the Feedback Hub, select the appropriate category and subcategory. In this case, submit your feedback in the Cortana and Search category.

Включение и отключение компонентов Windows 10

Как известно, Windows 10 отличается набором компонентов от предыдущих версий операционных систем Windows. Зачастую требуется их включить или выключить, чтобы они не потребляли системные ресурсы, да и просто не мешали. В этой статье мы рассмотрим как это сделать быстрее и эффективнее.

Начнем с того, что существует два основных способа работы с компонентами (они еще называются features) — утилита DISM и командлеты Powershell. И то и другое встроено в Windows 10, в отличие от Windows 7, где dism можно было добавить или установив пакет Windows ADK, или руками скопировав dism.exe с другого компьютера.

Читайте также:  Ncalayer mac os �� ��������

Сразу отмечу, что утилиту dism и среду powershell для работы с системой необходимо запускать от имени администратора, даже если ваш аккаунт уже находится в группе локальных админов. Итак, вы или находите cmd или windows powershell в меню и, кликнув правой кнопкой мышки, выбираете «Запуск от имени администратора».

В Windows 10 есть понятие Features и Capabilities. Первое — это привычные нам компоненты, которые можно найти в Панели управления -> Программы и компоненты -> Включение и отключение компонентов Windows. То есть это встраиваемые модули, которые выполняют определенный сервисный функционал.

Capabilities — это дополнительные возможности, которые расширяют возможности интерфейса и увеличивают удобство пользователя. Среди них — Language packs, наборы шрифтов. Да, Microsoft удалил часть нестандартных шрифтов, которые теперь вынесены в опциональные компоненты. Скачать эти компоненты можно в виде ISO файла с сайта Volume Licensing Service Center или напрямую через Internet и графический интерфейс Windows. Такую концепцию Microsoft назвала Features on Demand (FOD). Их в более ранних версия Windows не было.

Работаем с Windows Features

Итак, список установленных компонентов можно посмотреть командой

Dism /online /Get-Features

Вот как в Powershell можно получить список всех компонентов командлетами Get-WindowsFeature (для Windows Server) или Get-WindowsOptionalFeature (Windows 10):

Чтобы получить список отключенных компонентов, введите:

Get-WindowsOptionalFeature -Online | ? state -eq ‘disabled’ | select featurename

Этот список также можно вывести в файл (для windows Server):

Get-WindowsFeature | Where-Object <$_.Installed -match “True”>| Select-Object -Property Name | Out-File C:\Temp\WindowsFeatures.txt

Посмотрев список названий и их состояние, можно использовать эти названия для того, чтобы компоненты включить или выключить:

Dism /online /Enable-Feature /FeatureName:TFTP /All

ключ /All позволяет включить также все дочерние компоненты;

Установка компонентов через Powershell выполняется командой Enable-WindowsOptionalFeature.

Enable-WindowsOptionalFeature -Online -FeatureName RSATClient-Roles-AD-Powershell

Параметр -All включает все дочерние компоненты.

Dism /online /Disable-Feature /FeatureName:TFTP

Аналогично, через Powershell это можно сделать командой Disable-Windowsoptionalfeature -online -featureName [feature name].

Обратите внимание, некоторые фичи имеют разные названия в Windows 7 и Windows 10. Например, RSAT в Windows 7 — это RemoteServerAdministrationTools, а в Windows 10 — RSATclient.

Управление Features on Demand (FOD)

Если вы устанавливаете их через графический интерфейс, то вам необходимо пройти “System –> App & features –> Manage optional features” и нажать знак + напротив необходимых компонентов.

Чтобы сделать это автоматизированно через командную строку, наберите чтобы получить список доступных компонентов:

DISM.EXE /Online /Get-Capabilities

или на Powershell:

Как и прежде, запомните название необходимых вам компонентов, чтобы включить их командой (на примере .Net Framework 3):

DISM.EXE /Online /Add-Capability /CapabilityName:NetFx3

или на Powershell:

Add-WindowsCapability –Online -Name NetFx3

Если же у вас нет доступа в Интернет, то есть выход. Итак, вы скачиваете ISO образ диска с FOD компонентами с сайта Volume Licensing Service Center. Файлы будут разные для разных релизов Windows 10 — 1511, 1607, 1703, 1709. Важно помнить, что компоненты одного релиза не подходят к другому. Если вы сделаете in-place upgrade (установка одного релиза поверх другого через обновление), то несовместимые установленные компоненты будут удалены без вашего желания! Да, Microsoft удаляет то, что считает несовместимым при обновлении.

Так вот, ISO файл содержит набор неизвестных и сложных для понимания файлов с расширением cab. Вот чудесный файлик на сайта Microsoft, который обясняет назначение каждого файла. Итак, существуют следующие типы FOD:

  • Microsoft-Windows-LanguageFeatures-Basic — проверка правописания для различных языков и раскладок клавиатуры;
  • Microsoft-Windows-LanguageFeatures-Fonts — национальные шрифты, например, азиатские
  • Microsoft-Windows-LanguageFeatures-OCR — средства для распознавания шрифтов
  • Microsoft-Windows-LanguageFeatures-Handwriting — средства для распознавания рукописного ввода
  • Microsoft-Windows-LanguageFeatures-TextToSpeech — средства преобразования текста в голос, используемые подсказчиком Cortana
  • Microsoft-Windows-LanguageFeatures-Speech — распознавание голоса
  • Microsoft-Windows-InternationalFeatures — пакеты национальных настроек, например, для Тайваня

Итак, для добавления таких FOD компонентов, используйте команды вида (замените имя компонента):

Dism /Online /Add-Capability /CapabilityName:Language.Basic

Для удаления FOD:

Dism /Online /Remove-Capability /CapabilityName:Language.Basic

Установка и переустановка пакетов языков (Language Interface Packs, LIP)

Язык интерфейса Windows можно поменять, установив так называемые LIP. ранее они назывались MUI (Multi user interface). Файлы LIP выглядят так: Microsoft-Windows-Client-Language-Pack_x64_es-es.cab для испанского языка. Выглядеть установка будет примерно так:

Dism /Add-Package /online /PackagePath:»C:\Languages\Microsoft-Windows-Client-Language-Pack_x64_fr-fr.cab»

Dism /Remove-Package /online /PackageName:Microsoft-Windows-Client-LanguagePack-Package

В следующей статье мы поговорим как с помощью DISM и Powershell управлять так называемыми Modern-приложениями AppX.

Устранение неполадок подсистемы Windows для Linux Troubleshooting Windows Subsystem for Linux

Для получения поддержки по вопросам, связанным с WSL, изучите наш репозиторий продукта WSL на сайте GitHub. For support with issues related to WSL, please see our WSL product repo on GitHub.

Поиск описанных проблем, связанных с вашей проблемой Search for any existing issues related to your problem

При возникновении технических проблем используйте репозиторий продукта. For technical issues, use the product repo.

При возникновении проблем, связанных с содержимым этой документации, используйте репозиторий документов. For issues related to the contents of this documentation, use the docs repo.

Отправка отчета об ошибке Submit a bug report

При возникновении ошибок, связанных с функциями или компонентами WSL, отправьте сообщение о проблеме в репозитории продуктов: https://github.com/Microsoft/wsl/issues For bugs related to WSL functions or features, file an issue in the product repo: https://github.com/Microsoft/wsl/issues

Отправка запроса на добавление возможностей Submit a feature request

Чтобы запросить новую возможность, связанную с функциональностью или совместимостью WSL, создайте запрос в репозитории продуктов. To request a new feature related to WSL functionality or compatibility, file an issue in the product repo.

Участие в разработке документации Contribute to the docs

Чтобы внести изменения в документацию по WSL, отправьте запрос на вытягивание в репозитории документов: https://github.com/MicrosoftDocs/wsl/issues To contribute to the WSL documentation, submit a pull request in the docs repo: https://github.com/MicrosoftDocs/wsl/issues

Терминал или командная строка Terminal or Command Line

Наконец, если ваша проблема связана с терминалом Windows, консолью Windows или интерфейсом командной строки, используйте репозиторий терминалов Windows: https://github.com/microsoft/terminal Lastly, if your issue is related to the Windows Terminal, Windows Console, or the command-line UI, use the Windows terminal repo: https://github.com/microsoft/terminal

Распространенные проблемы Common issues

Я использую Windows 10 версии 1903, но не вижу параметры для WSL 2. I’m on Windows 10 version 1903 and I still do not see options for WSL 2

Скорее всего, это связано с тем, что на компьютере еще не установлены исправления для WSL 2. This is likely because your machine has not yet taken the backport for WSL 2. Чтобы решить эту проблему самым простым способом, перейдите в параметры Windows, нажмите кнопку «Проверить наличие обновлений» и установите последние обновления в системе. The simplest way to resolve this is by going to Windows Settings and clicking ‘Check for Updates’ to install the latest updates on your system. Изучите полные инструкции по получению исправления для старой версии. See the full instructions on taking the backport.

Если после нажатия кнопки «Проверить наличие обновлений» вы не получили обновление, можно установить исправления KB4566116 вручную. If you hit ‘Check for Updates’ and still do not receive the update you can install KB KB4566116 manually.

Ошибка. 0x1bc, когда wsl —set-default-version 2 Error: 0x1bc when wsl —set-default-version 2

Это может произойти, если язык интерфейса или язык системы не является английским. This may happen when ‘Display Language’ or ‘System Locale’ setting is not English.

Фактическая ошибка для 0x1bc : THe actual error for 0x1bc is:

См. сведения о проблеме 5749. For more information, please refer to issue 5749

Не удается получить доступ к файлам WSL из Windows Cannot access WSL files from Windows

Файловый сервер протокола 9p предоставляет службу на стороне Linux, которая позволяет Windows получить доступ к файловой системе Linux. A 9p protocol file server provides the service on the Linux side to allow Windows to access the Linux file system. Если вы не можете получить доступ к WSL с помощью \\wsl$ в Windows, возможно, это вызвано неправильным запуском 9P. If you cannot access WSL using \\wsl$ on Windows, it could be because 9P did not start correctly.

Чтобы убедиться в этом, можно проверить журналы запуска с помощью команды dmesg |grep 9p . Если ошибки есть, отобразятся сведения о них. To check this, you can check the start up logs using: dmesg |grep 9p , and this will show you any errors. Вывод выглядит следующим образом: A successfull output looks like the following:

Дополнительные сведения об этой ошибке см. в этом потоке GitHub. Please see this Github thread for further discussion on this issue.

Не удается запустить дистрибутив WSL 2, а в выходных данных отображается только WSL 2. Can’t start WSL 2 distribution and only see ‘WSL 2’ in output

Если язык интерфейса не английский, возможно, отображается усеченная версия текста ошибки. If your display language is not English, then it is possible you are seeing a truncated version of an error text.

Чтобы устранить эту проблему, перейдите по адресу https://aka.ms/wsl2kernel и установите ядро вручную, следуя инструкциям на этой странице документации. To resolve this issue, please visit https://aka.ms/wsl2kernel and install the kernel manually by following the directions on that doc page.

Ошибка command not found при выполнении исполняемых файлов Windows в Linux command not found when executing windows .exe in linux

Пользователи могут запускать исполняемые файлы Windows, например notepad.exe, прямо в среде Linux. Users can run Windows executables like notepad.exe directly from Linux. Но иногда это действие приводит к ошибке «Команда не найдена», как показано ниже: Sometimes, you may hit «command not found» like below:

Если в переменной $PATH нет обязательных путей Win32, подсистема взаимодействие не сможет найти EXE-файл. If there are no win32 paths in your $PATH, interop isn’t going to find the .exe. Чтобы проверить это, выполните echo $PATH в среде Linux. You can verify it by running echo $PATH in Linux. В выходных данных вы должны увидеть путь к win32 (например, /mnt/c/Windows). It’s expected that you will see a win32 path (for example, /mnt/c/Windows) in the output. Если вы не видите эти пути Windows, скорее всего переменная PATH перезаписана оболочкой Linux. If you can’t see any Windows paths then most likely your PATH is being overwritten by your Linux shell.

Читайте также:  Открывается окно безопасность windows

Ниже приведен пример файла /etc/profile на ОС Debian, который вызывал такую проблему: Here is a an example that /etc/profile on Debian contributed to the problem:

Чтобы решить эту проблему в среде Debian, нужно удалить приведенные выше строки. The correct way on Debian is to remove above lines. Вы также можете добавить значения в переменную $PATH во время назначения, как показано ниже, но это может вызвать другие проблемы с WSL и VSCode. You may also append $PATH during the assignment like below, but this lead to some other problems with WSL and VSCode..

Дополнительные сведения см. в описании проблем 5296 и 5779. For more information, see issue 5296 and issue 5779.

«Ошибка: 0x80370102 The virtual machine could not be started because a required feature is not installed (Не удалось запустить виртуальную машину, так как не установлена необходимая функция). «Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.»

Включите компонент платформы виртуальных машин Windows и убедитесь, что в BIOS включена виртуализация. Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.

Если компьютер является виртуальной машиной, включите вложенную виртуализацию вручную. If your machine is a VM, please enable nested virtualization manually. Запустите PowerShell с правами администратора и выполните следующую команду: Launch powershell with admin, and run:

Следуйте рекомендациям производителя компьютера, чтобы включить виртуализацию. Please follow guidelines from your PC’s manufacturer on how to enable virtualization. Как правило, для проверки того, что эти функции включены в ЦП, может использоваться BIOS системы. In general, this can involve using the system BIOS to ensure that these features are enabled on your CPU. Инструкции для этого процесса могут быть разными для разных компьютеров, один из примеров вы можете изучить в этой статье от Bleeping Computer. Instructions for this process can vary from machine to machine, please see this article from Bleeping Computer for an example.

Перезагрузите компьютер после включения дополнительного компонента Virtual Machine Platform . Restart your machine after enabling the Virtual Machine Platform optional component.

Bash утрачивает подключение к сети после подключения к сети VPN Bash loses network connectivity once connected to a VPN

Если после подключения к VPN в Windows оболочка Bash утрачивает подключение к сети, попробуйте воспользоваться этим обходным решением в Bash. If after connecting to a VPN on Windows, bash loses network connectivity, try this workaround from within bash. Это решение позволит вручную переопределить разрешение DNS с помощью /etc/resolv.conf . This workaround will allow you to manually override the DNS resolution through /etc/resolv.conf .

  1. Запишите DNS-сервер виртуальной частной сети. Для этого выполните ipconfig.exe /all Take a note of the DNS server of the VPN from doing ipconfig.exe /all
  2. Создайте копию существующего resolv.conf, выполнив sudo cp /etc/resolv.conf /etc/resolv.conf.new Make a copy of the existing resolv.conf sudo cp /etc/resolv.conf /etc/resolv.conf.new
  3. Разорвите связь с текущим файлом resolv.conf, выполнив команду sudo unlink /etc/resolv.conf . Unlink the current resolv.conf sudo unlink /etc/resolv.conf
  4. sudo mv /etc/resolv.conf.new /etc/resolv.conf
  5. Откройте /etc/resolv.conf и сделайте следующее. Open /etc/resolv.conf and
    a. a. Удалите из файла первую строку с текстом «# This file was automatically generated by WSL. Delete the first line from the file, which says «# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line.» (Этот файл был автоматически создан WSL. Чтобы остановить автоматическое создание этого файла, удалите данную строку). To stop automatic generation of this file, remove this line.».
    b. b. Добавьте запись DNS из пункта 1 выше в качестве первой записи в списке DNS-серверов. Add the DNS entry from (1) above as the very first entry in the list of DNS servers.
    c. c. Закройте файл. Close the file.

После отключения VPN необходимо будет отменить изменения в /etc/resolv.conf . Once you have disconnected the VPN, you will have to revert the changes to /etc/resolv.conf . Для этого сделайте следующее. To do this, do:

  1. cd /etc
  2. sudo mv resolv.conf resolv.conf.new
  3. sudo ln -s ../run/resolvconf/resolv.conf resolv.conf

При запуске WSL или установке дистрибутива возвращается код ошибки Starting WSL or installing a distribution returns an error code

Выполните эти инструкции, чтобы получить подробные журналы и сообщить о возникшей проблеме на портале GitHub. Follow these instructions to collect detailed logs and file an issue on our GitHub.

Обновление Bash для Ubuntu в Windows Updating Bash on Ubuntu on Windows

Два компонента Bash для Ubuntu в Windows могут требовать обновления. There are two components of Bash on Ubuntu on Windows that can require updating.

Подсистема Windows для Linux The Windows Subsystem for Linux

Обновление этой части Bash для Ubuntu в Windows обеспечит применение всех новых исправлений, описанных в заметках о выпуске. Upgrading this portion of Bash on Ubuntu on Windows will enable any new fixes outlines in the release notes. Убедитесь, что вы подписаны на Программу предварительной оценки Windows и что ваша сборка обновлена. Ensure that you are subscribed to the Windows Insider Program and that your build is up to date. Чтобы обеспечить более точное управление, включая сброс экземпляра Ubuntu, ознакомьтесь со страницей справочных материалов по командам. For finer grain control including resetting your Ubuntu instance check out the command reference page.

Двоичные файлы пользователя Ubuntu The Ubuntu user binaries

При обновлении этой части Bash для Ubuntu в Windows будут установлены все обновления двоичных файлов пользователя Ubuntu, включая приложения, установленные с помощью apt-get. Upgrading this portion of Bash on Ubuntu on Windows will install any updates to the Ubuntu user binaries including applications that you have installed via apt-get. Чтобы выполнить обновление, выполните следующие команды в Bash. To update run the following commands in Bash:

Ошибки apt-get upgrade Apt-get upgrade errors

Некоторые пакеты используют функции, которые еще не реализованы. Some packages use features that we haven’t implemented yet. Например, udev пока не поддерживается и вызывает несколько ошибок apt-get upgrade . udev , for example, isn’t supported yet and causes several apt-get upgrade errors.

Чтобы устранить проблемы, связанные с udev , выполните следующие действия. To fix issues related to udev , follow the following steps:

Введите приведенный ниже код в /usr/sbin/policy-rc.d и сохраните изменения. Write the following to /usr/sbin/policy-rc.d and save your changes.

Добавьте разрешения на выполнение в /usr/sbin/policy-rc.d : Add execute permissions to /usr/sbin/policy-rc.d :

Выполните следующие команды: Run the following commands:

«Ошибка: 0x80040306» при установке «Error: 0x80040306» on installation

Это связано с тем, что мы не поддерживаем устаревшую консоль. This has to do with the fact that we do not support legacy console. Чтобы отключить устаревшую консоль, выполните следующие действия. To turn off legacy console:

  1. Выполните файл cmd.exe. Open cmd.exe
  2. Щелкните правой кнопкой мыши строку заголовка и выберите «Свойства», затем снимите флажок «Использовать прежнюю версию консоли». Right click title bar -> Properties -> Uncheck Use legacy console
  3. Нажмите кнопку «ОК». Click OK

«Ошибка: 0x80040154» после обновления Windows «Error: 0x80040154» after Windows update

Компонент «Подсистема Windows для Linux» может быть отключен во время обновления Windows. The Windows Subsystem for Linux feature may be disabled during a Windows update. В этом случае данную функцию Windows необходимо включить заново. If this happens the Windows feature must be re-enabled. Инструкции по включению подсистемы Windows для Linux можно найти в руководстве по установке. Instructions for enabling the Windows Subsystem for Linux can be found in the Installation Guide.

Изменение отображаемого языка Changing the display language

Установщик WSL попытается автоматически изменить языковой стандарт Ubuntu в соответствии с языковым стандартом установки Windows. WSL install will try to automatically change the Ubuntu locale to match the locale of your Windows install. Если это нежелательно, можно выполнить приведенную ниже команду, чтобы изменить языковой стандарт Ubuntu после завершения установки. If you do not want this behavior you can run this command to change the Ubuntu locale after install completes. Чтобы это изменение вступило в силу, потребуется повторно запустить bash.exe. You will have to relaunch bash.exe for this change to take effect.

В приведенном ниже примере языковой стандарт изменяется на EN-US. The below example changes to locale to en-US:

Проблемы установки после восстановления системы Windows Installation issues after Windows system restore

  1. Удалите папку %windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux . Delete the %windir%\System32\Tasks\Microsoft\Windows\Windows Subsystem for Linux folder.
    Примечание. Не делайте этого, если дополнительный компонент полностью установлен и работает.Note: Do not do this if your optional feature is fully installed and working.
  2. Включите дополнительный компонент WSL (если он еще не включен). Enable the WSL optional feature (if not already)
  3. Выполните перезагрузку. Reboot
  4. Выполните команду lxrun /uninstall /full lxrun /uninstall /full
  5. Установите Bash. Install bash

Нет доступа к Интернету в WSL No internet access in WSL

Некоторые пользователи сообщили о проблемах с определенными приложениями брандмауэра, блокирующими доступ к Интернету в WSL. Some users have reported issues with specific firewall applications blocking internet access in WSL. Сообщили о следующих брандмауэрах: The firewalls reported are:

  1. Kaspersky; Kaspersky
  2. AVG; AVG
  3. Avast. Avast
Читайте также:  Windows терминальный доступ лицензии

В некоторых случаях отключение брандмауэра обеспечивает доступ. In some cases turning off the firewall allows for access. В некоторых случаях доступ блокируется просто при наличии установленного брандмауэра. In some cases simply having the firewall installed looks to block access.

Ошибка «Отказ в разрешении» при проверке связи Permission Denied error when using ping

В выпуске Windows Anniversary Update, версия 1607 для проверки связи в WSL требуются права администратора. For Windows Anniversary Update, version 1607, administrator privileges in Windows are required to run ping in WSL. Чтобы выполнить проверку связи, запустите Bash для Ubuntu в Windows от имени администратора или запустите bash.exe из командной строки или сеанса PowerShell с привилегиями администратора. To run ping, run Bash on Ubuntu on Windows as an administrator, or run bash.exe from a CMD/PowerShell prompt with administrator privileges.

В более поздних версиях Windows (сборка 14926+) права администратора не требуются. For later versions of Windows, Build 14926+, administrator privileges are no longer required.

Bash перестал отвечать на запросы Bash is hung

Если при работе с Bash вы обнаружите, что Bash перестал отвечать на запросы (или взаимозаблокирован), помогите нам диагностировать проблему путем сбора и передачи дампа памяти. If while working with bash, you find that bash is hung (or deadlocked) and not responding to inputs, help us diagnose the issue by collecting and reporting a memory dump. Обратите внимание на то, что выполнение этих действий приведет к сбою системы. Note that these steps will crash your system. Не делайте этого, если вас это не устраивает, либо предварительно сохраните результаты своей работы. Do not do this if you are not comfortable with that or save your work prior to doing this.

Сбор дампа памяти To collect a memory dump

Измените тип дампа памяти на «Полный дамп памяти». Change the memory dump type to «complete memory dump». При изменении типа дампа запишите текущий тип. While changing the dump type, take a note of your current type.

Выполните эти действия, чтобы настроить аварийное завершение с помощью клавиатуры. Use the steps to configure crash using keyboard control.

Воспроизведите взаимоблокировку или прекращение ответа на запросы. Repro the hang or deadlock.

Выполните аварийное завершение системы с помощью последовательности клавиш из пункта 2. Crash the system using the key sequence from (2).

Произойдет аварийное завершение системы и будет собран дамп памяти. The system will crash and collect the memory dump.

После перезагрузки системы отправьте memory.dmp на адрес электронной почты secure@microsoft.com. Once the system reboots, report the memory.dmp to secure@microsoft.com. По умолчанию файл дампа находится в папке %SystemRoot%\memory.dmp или C:\Windows\memory.dmp, если C: является системным диском. The default location of the dump file is %SystemRoot%\memory.dmp or C:\Windows\memory.dmp if C: is the system drive. В письме укажите, что дамп предназначен для команды разработчиков WSL или Bash в Windows. In the email, note that the dump is for the WSL or Bash on Windows team.

Восстановите исходное значение типа дампа памяти. Restore the memory dump type to the original setting.

Проверка номера сборки Check your build number

Чтобы узнать архитектуру компьютера и номер сборки Windows, выберите To find your PC’s architecture and Windows build number, open
Параметры > Система > О программе Settings > System > About

Найдите поля Сборка ОС и Тип системы. Look for the OS Build and System Type fields.

Чтобы найти номер сборки Windows Server, выполните в PowerShell следующую команду. To find your Windows Server build number, run the following in PowerShell:

Подтверждение включения WSL Confirm WSL is enabled

Вы можете убедиться, что подсистема Windows для Linux включена, выполнив в PowerShell следующую команду. You can confirm that the Windows Subsystem for Linux is enabled by running the following in PowerShell:

Проблемы с подключением к серверу OpenSSH OpenSSH-Server connection issues

Попытка подключения к серверу SSH завершается следующей ошибкой: «Connection closed by 127.0.0.1 port 22» (Подключение закрыто узлом 127.0.0.1 через порт 22). Trying to connect your SSH server is failed with the following error: «Connection closed by 127.0.0.1 port 22».

Убедитесь, что сервер OpenSSH работает Make sure your OpenSSH Server is running:

Завершите работу службы sshd и запустите sshd в режиме отладки. Stop the sshd service and start sshd in debug mode:

Проверьте журналы запуска и убедитесь, что ключи сервера доступны и в журнале нет сообщений, как показано ниже. Check the startup logs and make sure HostKeys are available and you don’t see log messages such as:

Если вы видите такие сообщения и в разделе /etc/ssh/ отсутствуют ключи, потребуется повторно создать ключи или просто очистить и установить сервер OpenSSH. If you do see such messages and the keys are missing under /etc/ssh/ , you will have to regenerate the keys or just purge&install openssh-server:

«Указанная сборка не найдена». «The referenced assembly could not be found.» Это сообщение может появиться при включении дополнительного компонента WSL. when enabling the WSL optional feature

Данная ошибка связана с неправильным состоянием установки. This error is related to being in a bad install state. Чтобы устранить эту проблему, выполните следующие действия. Please complete the following steps to try and fix this issue:

Если вы используете команду включения компонента WSL в PowerShell, попробуйте использовать графический пользовательский интерфейс. Для этого откройте меню «Пуск», выполните поиск фразы «Включение или отключение компонентов Windows», а затем из списка выберите «Подсистема Windows для Linux». Этот дополнительный компонент будет установлен. If you are running the enable WSL feature command from PowerShell, try using the GUI instead by opening the start menu, searching for ‘Turn Windows features on or off’ and then in the list select ‘Windows Subsystem for Linux’ which will install the optional component.

Обновите версию Windows, выбрав «Параметры» > «Обновления» и щелкнув «Проверить наличие обновлений». Update your version of Windows by going to Settings, Updates, and clicking ‘Check for Updates’

Если оба способа не помогли и вам нужно использовать WSL, рассмотрите возможность обновления на месте, переустановив Windows 10 с установочного носителя и выбрав параметр «Сохранить все», чтобы сохранить свои приложения и файлы. If both of those fail and you need to access WSL please consider upgrading in place by reinstalling Windows 10 using installation media and selecting ‘Keep Everything’ to ensure your apps and files are preserved. Инструкции по такой установке можно найти на странице Переустановка Windows 10. You can find instructions on how to do so at the Reinstall Windows 10 page.

Правильные (связанные с SSH) ошибки разрешений Correct (SSH related) permission errors

Если вы видите эту ошибку: If you’re seeing this error:

Чтобы устранить эту проблему, добавьте следующий текст в файл /etc/wsl.conf : To fix this, append the following to the the /etc/wsl.conf file:

Обратите внимание, что добавление этой команды будет включать метаданные и изменять разрешения для файлов Windows, показанных в WSL. Please note that adding this command will include metadata and modify the file permissions on the Windows files seen from WSL. См. сведения о разрешениях файловой системы. Please see the File System Permissions for more information.

Выполнение команд Windows завершается сбоем в дистрибутиве Running Windows commands fails inside a distribution

Некоторые дистрибутивы, доступные в Microsoft Store, еще не полностью поддерживают возможность выполнения команд Windows в Терминале. Some distributions available in Microsoft Store are yet not fully compatible to run Windows commands in Terminal out of the box. Если при выполнении powershell.exe /c start . или любой другой команды Windows возникает ошибка -bash: powershell.exe: command not found , ее можно устранить, выполнив следующие действия: If you get an error -bash: powershell.exe: command not found running powershell.exe /c start . or any other Windows command, you can resolve it following these steps:

  1. В дистрибутиве WSL выполните echo $PATH . In your WSL distribution run echo $PATH .
    Если /mnt/c/Windows/system32 отсутствует, что-то переопределяет стандартную переменную PATH. If it does not include: /mnt/c/Windows/system32 something is redefining the standard PATH variable.
  2. Проверьте параметры профиля с помощью cat /etc/profile . Check profile settings with cat /etc/profile .
    Если присутствует назначение переменной PATH, измените файл, чтобы закомментировать блок назначения PATH, используя символ # . If it contains assignment of the PATH variable, edit the file to comment out PATH assignment block with a # character.
  3. Проверьте, существует ли файл wsl.conf ( cat /etc/wsl.conf ), и убедитесь, что он не содержит appendWindowsPath=false . В противном случае закомментируйте эту строку. Check if wsl.conf is present cat /etc/wsl.conf and make sure it does not contain appendWindowsPath=false , otherwise comment it out.
  4. Перезапустите дистрибутив, введя wsl -t , после чего следует имя дистрибутива, либо выполните wsl —shutdown в cmd или PowerShell. Restart distribution by typing wsl -t followed by distribution name or run wsl —shutdown either in cmd or PowerShell.

Не удается выполнить загрузку после установки WSL 2 Unable to boot after installing WSL 2

Мы осведомлены о проблемах, из-за которых пользователям не удается выполнить загрузку после установки WSL 2. We are aware of an issue affecting users where they are unable to boot after installing WSL 2. Пока мы полностью диагностировали эту проблему, от пользователей поступали сообщения о том, что помочь в ее устранении может изменение размера буфера или установка правильных драйверов. While we fully diagnose those issue, users have reported that changing the buffer size or installing the right drivers can help address this. Просматривайте новейшие сведения об этой проблеме на сайте GitHub. Please view this Github issue to see the latest updates on this issue.

Оцените статью