Как обновить wsl windows 10

Время на прочтение
2 мин

Количество просмотров 19K

В последних сборках Windows Insider Preview вы можете установить все необходимое для запуска WSL, просто выполнив wsl.exe —install. Мы рады сообщить, что эта функция теперь официально перенесена в Windows 10 версии 2004 и выше, что значительно упростит установку WSL в этих сборках.

Использование wsl —install

Раньше процесс настройки WSL был слишком сложным и требовал включения нескольких параметров и установки нескольких пакетов. Мы упростили процесс до одной команды: просто откройте окно командной строки с правами администратора и запустите wsl.exe —install. После того, как вы нажмете Enter, процесс автоматически включит необходимые дополнительные функции WSL, установит дистрибутив Ubuntu по умолчанию и установит последнюю версию ядра WSL Linux на ваш компьютер. Когда он будет завершен и вы перезагрузите компьютер, ваш дистрибутив запустится после того, как вы снова загрузитесь, завершив установку.

Кроме того, вы можете найти список доступных для установки дистрибутивов Linux, введя команду wsl —list —online в PowerShell или командной строке Windows. Чтобы установить дистрибутив, отличный от стандартного для Ubuntu или в дополнение к нему, используйте эту команду: wsl —install -d <DistroName>

Замените <DistroName> именем дистрибутива Linux, найденным в предыдущей команде list. Эту команду установки можно использовать для первой установки или для добавления дополнительных дистрибутивов после того, как у вас уже установлен WSL с дистрибутивом Ubuntu по умолчанию.

Дополнительные команды

Мы также добавили несколько дополнительных команд, которые помогут вам управлять своими экземплярами WSL.

Вы можете использовать wsl —update, чтобы вручную обновить ядро WSL Linux, и вы можете использовать wsl —update rollback для отката к предыдущей версии ядра WSL Linux.

Наконец, вы можете использовать wsl —status для просмотра общей информации о вашей конфигурации WSL, такой как тип дистрибутива по умолчанию, дистрибутив по умолчанию и версия ядра.

Обновите версию Windows 10 для поддержки этих команд

Вы можете получить все это, просто обновив Windows, как обычно. Чтобы сделать это вручную, откройте настройки Windows, перейдите в «Обновления и безопасность» и нажмите «Проверить наличие обновлений».

Это обновление является частью KB5004296. На момент написания, когда вы нажмете «Проверить наличие обновлений», вы можете увидеть доступное дополнительное обновление, убедитесь, что оно имеет тот же номер, что и KB5004296, установите его, и вы получите доступ к wsl —update.

UPD. Теперь WSL в последних версиях Windows легко установить одной командой wsl --install

С выходом майского обновления Windows 2004 появилась возможность использования подсистемы WSL, о которой подробно можно прочитать на русском языке на сайте Microsoft: https://docs.microsoft.com/ru-ru/windows/wsl/about. В данной же заметке расскажу о том, как обновиться с 1 версии на WSL и с какой трудностью я столкнулся.

Я использую WSL1 с Windows-ноутбука как замену десктопа на Linux, т.к. WSL выполняет базовые функции, необходимые мне для администрирования, особенно в сочетании с Windows Terminal. Идея обновления возникла после необходимости установки Docker Desktop для Windows 10 Home — тут уже требуется WSL2 в качестве бэкенда.

На великом и могучем очень подробно написано, как провести обновление. Но данной статьи и не возникло бы, будь всё так легко, т.к. обновление и правда простое:

  • должна быть Windows 10 с обновлением до версии 2004, сборкой 19041
  • от имени админа в консоли включить компонент:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Перезагрузить ПК и выполнить:
wsl --set-default-version 2

Но на последнем шаге после завершения на выходе писалось: “Для получения сведений о ключевых различиях с WSL 2 перейдите на страницу https://aka.ms/wsl2” и никакого преобразования не происходило. ПК перезагружал несколько раз. То ли я не разобрался в деталях и нужно обновляться до установки самого дистрибутива, то ли где-то что-то упустил, но по изложенному мануалу на оф. сайте, выполняя пошагово команды, обновление не удалось.

Решение проблемы стало следующее: проверить, что имеется из установленного WSL в командной строке:

wsl -l -v

 NAME            STATE           VERSION
* Ubuntu-18.04    Stopped         1

И после получения наименования установленной сборки (Ubuntu-18.04 в моём случае), необходимо именно его указывать для преобразования до WSL 2:

wsl.exe --set-version Ubuntu-18.04 2

Выполняется преобразование, это может занять несколько минут...
Для получения сведений о ключевых различиях с WSL 2 перейдите на страницу https://aka.ms/wsl2

После этого wsl -l -v показывает обновленную вторую версию.

There were originally two issues behind the question:

  • WSLg, for running Linux GUI applications, was only available for Windows 11 at the time.
  • The wsl --update was only updating the kernel version at the time, rather than WSL itself.

Both of those have now changed in the latest WSL releases, and yet the core question of how to update WSL without Store access is even more important today than it was then:

  • WSL is now available as an application, rather than being delivered as a Windows Feature as it was then.

  • Windows 10 users now have access to this application (and the WSLg features as a result)

  • The default delivery mechanism for the WSL application is … The Store. Which is why it’s even more important than ever to understand how to install or update it when you don’t have Store access.

WSLg on Windows 10: Prerequisites

First, to install the latest WSL on Windows 10 (with or without the Store), you’ll need to be using a Windows UBR (update build revision) of 2311 or later. That’s the last 4 digits of your Windows build number, as in 19045.2311 (for Windows 10 22H2), which I believe indicate the monthly servicing release. You can determine the UBR by running (Get-ComputerInfo).WindowsUBR in PowerShell.

If you are running a UBR less than 2311, that’s likely a temporary situation, but for now, you can upgrade by:

  • Updating Windows 10 fully

  • Going to Settings -> Windows Updates -> Check for Updates and press the Check for Updates button.

  • You should see «2022-11 Cumulative Update Preview for Windows 10 Version 22H2 for x64-based Systems (KB5020030)» available as an optional update.

  • Install it and reboot when prompted.

Once this is installed, WSL should behave the same under both Windows 10 and Windows 11 22H2.

I don’t anticipate that it will be needed much in the future, but if you do happen to be on an older release of either Windows 10 or 11 that can’t currently be updated as above, please see my original answer.

«Normal» Store behavior

Whereas previously just the kernel update appeared to use the Store (as mentioned in the original answer), the latest WSL version itself is now installed (and updated) as an application from the Microsoft Store. If you wsl --install under the latest Windows 10 (updated as above) or Windows 11 (22H2) releases, the Store version will be installed by default for you (unless you deliberately specify the --inbox option as well).

Windows 11 21H2 users can also upgrade to the Store version using either the Store page directly or the method mention above. After that, wsl --update will work for future updates.

Installing/updating without the Store

However, since you specifically say that you can’t use the Store, you may need to use the alternative, manual package installation mechanism:

  1. Download the latest WSL app package release from the WSL Releases page in the Github repo.

  2. Reboot (to make sure that WSL is not in use at all). A simple wsl --shutdown may work, but often will not.

  3. Start an Administrator PowerShell and:

    Add-AppxPackage <path.to>/Microsoft.WSL_1.0.0.0_x64_ARM64.msixbundle
    wsl --version # to confirm
    

    Adjust the package name for the latest version you downloaded, of course.

  4. Reboot (not strictly necessary, but I’ve had one or two features that didn’t work 100% until a full reboot after install — I just can’t remember what they were now).

WSLg (and all other WSL features) should now be available.

Note that wsl --upgrade will probably still not work without access to the store. To obtain future updates, repeat the process above for the latest release.

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

angelog0 opened this issue

Jul 25, 2020

· 61 comments

Comments

@angelog0

Currently,

$ uname -a
Linux MyPC 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I am on current Windows 10 19041.388 and I would to know how WSL2 kernel updates. I see that Settings Apps has WSL Update package…

Will it occur with Windows Update, and I have only to wait? or is there another way?

Thanks

@expatjedi

Before installing WSL 2, you must enable the «Virtual Machine Platform» optional feature.

Open PowerShell as Administrator and run:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Open PowerShell as Administrator and run this command to set WSL 2 as the default version when installing a new Linux distribution:

wsl --set-default-version 2

You might see this message after running that command:

WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.

Please follow the link (https://aka.ms/wsl2kernel) and install the MSI from that page on our documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the command again and it should complete successfully without showing the message.

My note: After completed these steps don’t forget to set your distribution version to WSL 2. You don’t need to reinstall the ubuntu. I used this command:

wsl --set-version Ubuntu-20.04 2

Source: https://docs.microsoft.com/en-us/windows/wsl/install-win10

OpenWaygate, partizanos, HoussemTN, plutonic1, Alcyoal, JKBGIT1, LawrenceAbdulnour, glass-ships, AnonCYTO, cip8, and 90 more reacted with thumbs up emoji
2BitSalute, jonclemons, bibaodi, sourikghosh, BtbN, meowtech, vbrozik, krystianhub, carlosrmendes, ZeLarpMaster, and 46 more reacted with thumbs down emoji
cip8, max-programming, drmcarvalho, eleanorliu906, amirensit, arkajee, pavel604, and PeskyWabbit reacted with hooray emoji
aaronamm, cristhianviera1, amiellion, eleanorliu906, athnzc, lquyet, Vinaum8, UlisesGallardo, and sabrinayusli98 reacted with heart emoji
cip8, max-programming, maxmonakhov, apappas1129, drmcarvalho, eleanorliu906, arkajee, and svetlanamolodeykina reacted with rocket emoji
black-snow, eleanorliu906, and arkajee reacted with eyes emoji

@angelog0

@koraylinux , I have not asked how to install WSL2. I already have WSL2 installed and done all steps you suggest! There are posts saying there is a new version of the kernel for WSL2, so I simply asked how to upgrade it in current version of Windows 10, if one can… Current (see above) not insider or other development version of Windows.

cpoptic, 2BitSalute, bibaodi, sourikghosh, krystianhub, apveening, vbrozik, mc68020, fractalspace, dinhnhobao, and 46 more reacted with thumbs up emoji

@expatjedi

Could you share the link where you seen the discussion about new kernel?

@angelog0

@AleCx4

I am wondering the same thing. I have WSL2 and have made everything already to force my Ubuntu install to work with WSL2, but upon running the command: uname -r I get greeted with: 4.19.104-microsoft-standard, for many reasons I need 4.19.121, mainly because we can now use CUDA on WSL2 and settup a proper M.L environment on windows. Downloading the .msi installer from the official Microsoft page just updates it to version 4.19.104.

Guess we are going to have to wait for the actual update to appear on the system for itself?

@therealkenc

Current (see above) not insider or other development version of Windows.
#5642, for example.

That issue didn’t state build number, but did state right at the top «Windows Insider Program with Dev Channel».

On 2004 aka 19041 the kernel is installed via https://aka.ms/wsl2kernel. Whether that msi package gets updated to a new kernel absent some (hard to imagine) critical bug in the kernel seems unlikely. [But I wouldn’t want to jinx that with a «never».]

That CUDA is not available in Win10 2004 goes without saying.

@korypostma

As of 2020-10-31 the msi installs 4.19.128-microsoft-standard

@PavelSosin-320

I always tried on 2 machines — the same result: WSL2 Kernel update does nothing! According to WSL documentation page, it should be already 5.4 but it uname shows 4.9. I can’t accomplish some installation procedure like runc, because it explicitly requires 5.2 at least. Everything related to running OCI containers is messed — it requires cgroups v2 and checks kernel version. Is it only uname bug or normal WSL2 Linux Kernel is only a promise?

@matheussouza9

According to Windows Command Line Blog, WSL2 kernel updates will be available through Windows Update.

I got an update, a month ago, to the 4.19.128 version, but there is a new stable kernel release, 5.4.51. Unfortunately, this new version isn’t available yet through Windows Update (I don’t know why).

Windows Update History Screenshot

@Biswa96

Truleu, vbrozik, mangkoran, enderloong, BreakshadowCN, whour, BlackDragon17, queses, Asmod4n, bryli684, and 41 more reacted with thumbs up emoji
xiaoxstz, Calusin, evelyn-f-king, milesbuckton, and slopezjur reacted with laugh emoji
milesbuckton reacted with hooray emoji
2BitSalute, DanielMescoloto, mangkoran, enderloong, wendy705, vedant11, queses, jerryc05, thomasjungblut, dries, and 13 more reacted with heart emoji
noghte, Calusin, evelyn-f-king, IUnknownPtr, GSichelero, milesbuckton, bhaskoro-muthohar, slopezjur, and NguyenASang reacted with rocket emoji

@PavelSosin-320

The Microsoft catalog update contains 2 cab files for different architectures but wsl —update command ignores them and reports that the 4.19 is the recent version and nothing to update. Looks like new WSL Kernels are distributed via a different channel. I tried to install the new Kernel using cab but it installs nothing. From the wsl’s point of view, the cab is empty. msi installer doesn’t work too — the old Kernel version is not replaced and Kernel.rollback file is not created.

@DoctorWho8

Actually yes it does. run wsl —shutdown from an administrator upscaled window. In the location where you stored the extracted MSI kit, run that. And then restart WSL from that same window by entering wsl at the prompt and enter into its prompt the uname -a function. Restart docker if you run it as well.

@PavelSosin-320

@PavelSosin-320

Will this issue be solved or the WSL stopped to work forever? I already get message ‘WSL requires the Kernel update from Docker Desktop installer. I don’t want toinstall 3th party installer on my machine — it looks like fishing attempt. Promised wsl —update can’t find a new kernel.
I have very fresh insider build 20231. So, I expect that somebody in MS has spent time to create the deliverable Kernel and test its installation using wsl —update..
Meanwhile I don’t see that somebody is assigned.

@cpoptic

@cpoptic

After trying to install Windows Subsystem for Linux update using the wsl_update_x64.msi, it fails to run with the error the older version of windows subsystem for linux update cannot be removed please contact your technical support group.

I have absolutely no idea how to fix this.

Why can the older version not be removed???

These are the four distributions I have installed:

C:\Users\username>wsl -l -v

  NAME                   STATE           VERSION
* Ubuntu-20.04           Running         2
  Ubuntu                 Stopped         2
  docker-desktop-data    Running         2
  docker-desktop         Running         2

WSL update error screenshot

@PavelSosin-320

I see something: the Kernel file is always opened by Wmwp process ( Hyper-V worker process) even after wsl —shutdown. It is a hard-to-kill process. wsl —shutdown must stop Hyper-V worker by my understanding. Otherwise, neither update procedure will replace the Kernel file.
wsl —upgrade must ensure that Kernel file is unlocked by Wmwp before it does upgrade. But it never happens — all my distro continue to run after wsl —update attempt.
Microsoft update catalog shows 2 WSL Kernel updates, i.e. zipped cab files but how it is related to wsl —update? Can I say which update I want to install?
Following the endless discussions about why DISM can’t install the package from the cab file, I have come to the conclusion that the cab doesn’t contain a manifest file or dism can’t reach it inside cab.
Indeed, Only the branch of Linux Kernel 5.4 exists in the GitHub but there are no signs of update package. Does it mean that new WSL Linux Kernels are provided only in DIY manner without in-house testing?

@angelog0

On a tablet with win10 Home I had to revert from wsl2 to wsl1 because I had the wake up issue. Should I remove this wsl update .msi installed package?

@DoctorWho8

Well perhaps the fact that this OS isn’t part of the Insider collection might be part of the difference. Anyway I was successful following the steps I outlined above.

@CaseyLabs

For users coming here from a Google search for WSL2 Kernel Upgrade:

  • Download the latest kernel from here: https://www.catalog.update.microsoft.com/Search.aspx?q=wsl

  • Open and extract the update to your desktop

  • Load a command prompt with elevated privileges (Start —> cmd —> Right-click —> Run as Administrator)

  • Run these commands in the command prompt:

cd C:\Users\your_username\Desktop\

wsl --shutdown

wsl_update_x64.msi

wsl

uname -r

This should update the kernel and show you the latest running version.

funder7, fredrikw, thomasjungblut, mangkoran, gcoghlan, robcmo, nicohouillon, JohnGu9, aidistan, LuMarans30, and 36 more reacted with thumbs up emoji
marcioj, stevanmilic, mike-lawrence, liaskivskiy, zyablitsev, Alberick, yunsii, tbcrawford, renatovassao, marierose147, and 27 more reacted with hooray emoji
antoson, RaghavPrabhakar66, MazdaX, vbrozik, iblezya, stevanmilic, mike-lawrence, Alberick, dmcgiv, Aszarsha, and 30 more reacted with heart emoji
oising, keiransteele-phocas, Animeshz, gvashishtha, wetterkrank, ninjaa, thomasjungblut, puco, mangkoran, aidistan, and 7 more reacted with rocket emoji

@cpoptic

@CaseyLabs I’ve tried this many times but it’s blocked at:

The file wsl_update_x64.msi is not a valid installation package for the product Windows Subsystem for Linux Update. Try to find the installation package ‘wsl_update_x64.msi’ in a folder from which you can install Windows Subsystem for Linux Update.

Regardless of where I browse in my File Explorer and point to the downloaded wsl_update_x64.msi installer package, it continues to give this same response. Blocked.
WSL update won't install

@DoctorWho8

Right click on it and bring up the properties dialog box. Check to see if it shows that the blocked checkbox is checked. Uncheck it and close the dialog box. Then try again.

@fox4u

Turn «Receive updates for other Microsoft products when you update Windows» on in Advance options of Windows update, the WSL2 kernel will get updated automatically.

vbrozik, krnets, radikaled, klmdb, paulbargaoanu, m-salman-afzal, dcgerard, Igzak, RailConcept-Raphael-Blin, parker-codes, and 16 more reacted with thumbs up emoji
radikaled, m-salman-afzal, Igzak, parker-codes, LentoMan, Alexis-Pannetier, and JonathonO reacted with hooray emoji

@angelog0

Turn «Receive updates for other Microsoft products when you update Windows» on in Advance options of Windows update, the WSL2 kernel will get updated automatically.

This seems to fix the issue. After enabling that, it updated the kernel which now is 5.4.72!

@Biswa96

@fenris

@TBBle

The latest WSL 2 kernel for 20H2 19042.804 is 5.4.72.

Even if you install 5.4.91 from the Microsoft Catalog by hand, Windows Update (with «Receive updates for other Microsoft products when you update Windows» enabled) will attempt to downgrade you back to 5.4.72, which fails unless you uninstall the 5.4.91 kernel from Add/Remove Programs first. Apart from that, the hand-upgraded kernel seemed to work, but I didn’t really put it through its paces.

So it seems to be working-as-intended.

@fenris What did you have in mind as an update?

I expect that Windows Insiders get Linux 5.4.91 installed by WU, but don’t know for sure. The Microsoft Catalog web UI doesn’t tell you which Windows builds will get which updates, so I’m not sure if there’s a way to confirm this, and I don’t have an Insider build running.

@cherinyy

Hello guys,

How can I stop this stupid Windows Update from installing a lower version of the kernel? Although it cannot be installed successfully.

屏幕截图 2021-05-10 185216

@NoSubstitute

@jtmoon79

tl;dr the kernel-in-use appears affected by the user running the WSL instance. In my case, only the Administrator user instance of WSL was affected by the updated kernel.

I updated a Windows 10 Pro host to Windows Subsystem for Linux Update — 5.10.43.

My initial install of WSL used the Microsoft Store. Subsequent updates were manually downloaded and installed.

  1. I downloaded the wsl_update_x64_d563b3571b8cdddd4b587266a499f98607b27ced.cab and extracted wsl_update_x64.msi.

  2. In a Powershell console, run as Administrator, I ran

    PS> wsl --shutdown
    PS> wsl_update_x64.msi
    PS> wsl -- uname -a
    

    The kernel update appeared to succeed.
    The last uname command printed the updated kernel.

  3. As Administrator, I ran wsl --shutdown.

  4. In a Powershell console, run as my non-Administrator user and not «main user» (not the user that installed WSL under elevated privileges), I repeated the prior commands.

    PS> wsl --shutdown
    PS> wsl_update_x64.msi
    PS> wsl -- uname -a
    

    The kernel update appeared to succeed, however
    The uname command, run as a non-privileged user, displayed the old kernel version.

It appears only the Administrator can successfully WSL update.


I suspect there is some tangled relationship (bug) among:

  • the user that first installed WSL
  • the user running wsl_update_x64.msi
  • run as an Adminstrator or not
  • using Microsoft Store versus manual install

@Calusin

@xDFCx

Hi @jtmoon79, looks like I have the same thing here

wsl —status

Kernel version: 5.10.60.1
wsl — uname -r
4.4.0-19041-Microsoft

Have you figured out anything on this issue? Is it possible to update kernet for my user?

@git-adamk

@xDFCx I had similar issue. In my case it was caused because I had WSL in version 1.
Open cmd as admin and type:
wsl --list --verbose
NAME STATE VERSION
Ubuntu-18.04 Running 2

if version is 1 change it to 2 by typing:
wsl --set-version <distribution name> 2

After that wsl —status in cmd and uname -r in WSL shows the same kernel version.

@Abe-Telo

now why is this not working?
image

image

image

@morgan-greywolf

On Thu, 2022-03-03 at 09:26 -0800, thething wrote:
now why is this not working?

Exactly what the error message states: the sources for kernel stated
can’t be found.  You may have to point the build toward the sources if
they can’t be found automatically, either through ./configure options
or through flags passed directly to make.

@stloc

on ubuntu upgrade

» Newer kernel available

The currently running kernel version is 5.10.102.1-microsoft-standard-WSL2 which is not the expected kernel
version 5.15.0-40-lowlatency.

Restarting the system to load the new kernel will not be handled automatically, so you should consider
rebooting.»

image

how upgrade kernel ?

@TBBle

@stloc Depending on what version of Windows you’re on, wsl --update should work to upgrade the kernel if a new WSL2 kernel is available. The kernel inside Ubuntu (i.e. the one that notice is talking about) is not used in WSL2.

@NaveedAhmadHematmal

@rsokolewicz

Similar problem here. According to wsl I have the latest kernel installed, according to the linux distro I don’t:

> wsl --status
Default Distribution: Ubuntu-20.04
Default Version: 2

Windows Subsystem for Linux was last updated on 09/10/2022
WSL automatic updates are on.

Kernel version: 5.10.102.1

vs

> wsl -- uname -r
4.4.0-19041-Microsoft

I’ve updated wsl from 1 to 2, tried reinstalling the kernel update, running the repair tool. All doesn’t solve the problem. Does anyone have other ideas?

@CaseyLabs

@rsokolewicz

@bluebrown

This page doesn’t show the 5.15 kernel. https://www.catalog.update.microsoft.com/Search.aspx?q=wsl. If I try wsl --update, I don’t get it either.

$ wsl --status
Default Version: 2

Windows Subsystem for Linux was last updated on 04-Nov-22
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.102.1
$ wsl --update
Checking for updates...
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

I cannot enable automatic update since its managed by my org. So I want to install 5.15 kernel manually. How to do that?

@Biswa96

@bluebrown

@Biswa96 , is there a install without the store? I cant install stuff from the store for some reason.

@Biswa96

is there a install without the store?

Sure. Just download the msixbundle file from here https://github.com/microsoft/WSL/releases and install it with Add-AppxPackage command in Powershell. Remember that it requires certain versions of Windows 10 or 11 OSes which can be learned from here.

@bluebrown

@Biswa96, OK, thanks. Unfortunately, this didn’t change the kernel verion it seems. I have removed the old kernel update previously. Then from admin pwsh

Add-AppxPackage C:\Users\00300201\Downloads\Microsoft.WSL_1.0.3.0_x64_ARM64.msixbundle

The output here is in german but It said there is no kernel, and then I did wsl update

 wsl --status
Standardversion: 2

Der Windows-Subsystem für Linux-Kernel kann mit „wsl --update“ manuell aktualisiert werden. Aufgrund Ihrer Systemeinstellungen können jedoch keine automatischen Updates durchgeführt werden.
Um automatischen Kernel-Updates zu erhalten, aktivieren Sie die Windows Update-Einstellung: „Empfangen von Updates für andere Microsoft-Produkte, wenn Windows aktualisiert wird“.
Weitere Informationen finden Sie unter https://aka.ms/wsl2kernel.

Die WSL 2-Kerneldatei wird nicht gefunden. Wenn Sie den Kernel aktualisieren oder wiederherstellen möchten, führen Sie bitte das "wsl.exe--Update" aus.

wsl --update
Es wird nach Updates gesucht...
Updates werden heruntergeladen...
Updates werden installiert...
Diese Änderung wird beim nächsten vollständigen Neustart von WSL wirksam. Führen Sie „wsl--shutdown“ aus, um einen Neustart zu erzwingen.
Kernel-Version: 5.10.102.1

And the kernel is still 5.10.102.1

 wsl --status
Default Version: 2

Windows Subsystem for Linux was last updated on 23-Dec-22
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.102.1

My Windows version should be OK for this

Edition	Windows 10 Enterprise
Version	22H2
Installed on	‎21-‎Jun-‎21
OS build	19045.2251
Experience	Windows Feature Experience Pack 120.2212.4180.0

@Biswa96

Do you have any kernel option in %UserProfile%\.wslconfig file ?

@bluebrown

@Biswa96 , no. I dont have a .wlsconfig at all in my profile folder. I also checked the admin users profile folder.

@degarb

wsl —set-default-version 2 fails,
and,
updating msi just hangs. ( I have done everything on, https://dockerwebdev.com/tutorials/install-docker/) (One reason I use windows is because instructions for anything linux never work, unlike windows. I have been an on off linux user since 1999.)

@degarb

Also, repos never work for me. My MS store, works about 10 percent of the time. So, I can’t install ubuntu from there either.

@codingexcuse

wsl —update just run this in windows powershell it worked for me

@Li-00

My environment is win11 i5 64-bit
Use the administrator to open powerShell
first ,wsl —udate,
seconed check version wsl —version core > 5
image

@TBBle

The latest 5.15 series kernel release is 5.15.90.1. There’s a 6.1 series release but I’m not sure why it’s not yet being distributed (might still be WIP?).

If you’re stuck on 5.10.102.2 or older, that’s the latest release from the Microsoft Update Catalog, I suspect in this case one needs to switch to the Microsoft Store version of WSL to get newer kernels.

Looking at https://github.com/microsoft/WSL/releases, the 1.3 series of the Windows Store version of WSL includes Linux 5.15.90.2-3, so I’m assuming the 6.1 series is not ready yet. (That version doesn’t appear on the WSL2-Linux-Kernel repo AFAICT)

image

Anyway, since this ticket predates the Microsoft Store move, I’d suggest anyone having problems with updates after 5.10.102.2 open a new ticket, with full details, particularly wsl --version output, as this ticket is closed and probably not being looked at by many people.

Как обновить подсистему Windows для Linux в Windows 10 пошаговая инструкция

Подсистема Windows для Linux (WSL) – это набор инструментов, предоставляющий возможность запускать Linux-приложения непосредственно в Windows 10. В настоящее время WSL становится все более популярным среди разработчиков, так как позволяет им использовать привычную среду разработки Linux без необходимости установки полноценной операционной системы.

Как и все программное обеспечение, подсистема Windows для Linux регулярно обновляется, чтобы исправить ошибки и добавить новые функции. Обновление WSL может быть особенно важным, поскольку оно может повысить безопасность, стабильность и производительность вашей системы.

В этой статье мы рассмотрим пошаговую инструкцию о том, как обновить подсистему Windows для Linux в Windows 10. Мы покажем вам, как проверить текущую версию WSL и выполнить обновление с помощью Windows PowerShell.

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

Примечание: Обновление подсистемы Windows для Linux требует наличия учетной записи администратора.

Для обновления подсистемы Windows для Linux до последней версии в Windows 10 необходимо выполнить следующие шаги:

  1. Откройте меню «Пуск» и выберите «Настройки».
  2. В окне «Настройки» выберите пункт «Приложения».
  3. На левой панели выберите вкладку «Приложения и компоненты».
  4. Пролистайте список приложений и найдите «Подсистема Windows для Linux».
  5. Нажмите на «Подсистема Windows для Linux» и выберите пункт «Обновить».
  6. Дождитесь завершения процесса обновления.
  7. После завершения обновления, подсистема Windows для Linux будет обновлена до последней доступной версии.

Обновление подсистемы Windows для Linux позволяет получить новые функции, исправления ошибок и улучшения безопасности. Регулярное обновление рекомендуется, чтобы быть на шаг впереди и использовать все преимущества подсистемы Windows для Linux в Windows 10.

Примечание: Для выполнения данной инструкции требуется активированная подсистема Windows для Linux и наличие интернет-соединения.

Установка обновлений на вашем компьютере

Чтобы установить обновления на вашем компьютере, следуйте этим шагам:

  1. Откройте меню «Пуск», нажав на значок Windows в левом нижнем углу экрана.
  2. Выберите «Настройки».
  3. В открывшемся окне «Настройки» выберите «Обновление и безопасность».
  4. Нажмите на «Поиск обновлений».
  5. Windows начнет поиск доступных обновлений. Если обновления найдены, их список будет отображен.
  6. Нажмите на кнопку «Установить» для начала установки обновлений.
  7. Подождите, пока обновления устанавливаются. Во время этого процесса компьютер может перезагрузиться несколько раз.
  8. Когда установка обновлений завершена, вы увидите сообщение «Обновления установлены».

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

Проверка наличия последней версии подсистемы Windows для Linux

Проверка наличия последней версии подсистемы Windows для Linux

Чтобы установить или обновить подсистему Windows для Linux (WSL) в Windows 10, необходимо проверить, установлена ли у вас последняя версия.

Для этого выполните следующие шаги:

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

После выполнения всех этих шагов вы можете быть уверены, что у вас установлена последняя версия подсистемы Windows для Linux.

Обновление подсистемы Windows для Linux

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

Вот пошаговая инструкция по обновлению подсистемы Windows для Linux в Windows 10:

  1. Откройте меню «Пуск» и найдите «Настройки».
  2. Кликните на «Обновление и безопасность».
  3. В левой панели выберите «Для разработчиков».
  4. В правой панели выберите «Режим разработчика».
  5. После этого вам может потребоваться перезагрузить компьютер.
  6. Откройте меню «Пуск» и найдите «Подсистемы Windows для Linux».
  7. Щелкните правой кнопкой мыши на подсистеме Windows для Linux, которую вы хотите обновить, и выберите «Обновить».
  8. Дождитесь завершения процесса обновления.

После завершения этих шагов ваша подсистема Windows для Linux будет обновлена до последней доступной версии.

Не забывайте регулярно обновлять подсистему Windows для Linux, чтобы иметь доступ ко всем новым функциям и исправлениям безопасности.

Запуск команды обновления в PowerShell

Запуск команды обновления в PowerShell

Подсистема Windows для Linux в Windows 10 позволяет использовать команды и инструменты Linux напрямую в операционной системе Windows. Чтобы поддерживать расширяемость и обновлять подсистему Windows для Linux, Microsoft регулярно выпускает обновления. В этом разделе мы рассмотрим, как запустить команду обновления в PowerShell.

1. Щелкните правой кнопкой мыши по значку «Пуск» в левом нижнем углу экрана и выберите «Windows PowerShell» из контекстного меню.

2. В открывшемся окне PowerShell введите следующую команду и нажмите клавишу Enter:

3. PowerShell начнет загрузку самых последних обновлений подсистемы Windows для Linux и автоматически обновит вашу установленную версию.

4. Дождитесь завершения процесса обновления. Это может занять некоторое время, в зависимости от размера загружаемых обновлений и скорости вашего интернет-соединения.

После завершения обновления вы сможете использовать новые функции и инструменты, предоставляемые обновленной версией подсистемы Windows для Linux в Windows 10.

В этом разделе мы рассмотрели процесс запуска команды обновления в PowerShell, чтобы обновить подсистему Windows для Linux в Windows 10. Убедитесь, что ваша система подключена к интернету, чтобы загрузить и установить последние обновления.

Открытие PowerShell

Открытие PowerShell

Чтобы обновить подсистему Windows для Linux (WSL) в Windows 10, необходимо открыть PowerShell, командную строку в Windows.

Следуйте этим шагам, чтобы открыть PowerShell:

  1. Нажмите правой кнопкой мыши по кнопке «Пуск» в левом нижнем углу экрана.
  2. В появившемся контекстном меню выберите опцию «Windows PowerShell» или «Windows PowerShell (администратор)», если вы хотите запустить PowerShell с правами администратора.
  3. Появится новое окно PowerShell с командной строкой, готовой к вводу команд.

Теперь вы готовы пользоваться PowerShell для обновления подсистемы Windows для Linux в Windows 10.

Ввод команды обновления

Ввод команды обновления

Чтобы обновить подсистему Windows для Linux в Windows 10, вам необходимо открыть командную строку. Для этого выполните следующие шаги:

Шаг 1: Нажмите на кнопку «Пуск» в левом нижнем углу рабочего стола.

Шаг 2: В поле поиска введите «командная строка».

Шаг 3: В результатах поиска найдите «Командная строка» и щелкните правой кнопкой мыши на нем.

Шаг 4: В контекстном меню выберите «Запустить от имени администратора».

После открытия командной строки вы можете ввести команду обновления. Для этого выполните следующие шаги:

Шаг 1: В командной строке введите следующую команду:

wsl —update

Примечание: Если у вас не установлены все доступные обновления, команда выполнит обновление подсистемы Windows для Linux. Если у вас уже установлена последняя версия, команда покажет сообщение о том, что обновления не требуются.

Шаг 2: Нажмите клавишу Enter, чтобы выполнить команду обновления.

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

Использование Windows Update для обновления подсистемы Windows для Linux

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

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

Проверка версии подсистемы Windows для Linux

Чтобы узнать текущую версию подсистемы Windows для Linux, выполните следующие шаги:

  1. Откройте Windows PowerShell через меню Пуск или используя сочетание клавиш Win + X.
  2. Введите команду wsl -l -v и нажмите клавишу Enter.

Эта команда покажет список всех установленных подсистем WSL и их текущую версию. Версия подсистемы WSL отображается в столбце «Версия».

Имя Состояние Версия
Ubuntu-18.04 Запущено 1
Ubuntu-20.04 Запущено 2

В приведенной таблице показан пример вывода команды. Значение «1» соответствует версии 1 подсистемы WSL, а значение «2» соответствует версии 2.

Теперь вы знаете, как проверить версию подсистемы Windows для Linux.

Запуск команды проверки версии в PowerShell

Запуск команды проверки версии в PowerShell

Чтобы узнать версию установленной подсистемы Windows для Linux (WSL) в операционной системе Windows 10, выполните следующую команду в PowerShell:

Get-WindowsSubsystemForLinux

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

Для запуска PowerShell откройте меню «Пуск», найдите «Windows PowerShell» и щелкните правой кнопкой мыши. В контекстном меню выберите «Запуск от имени администратора». Подтвердите свое действие, если вам будет предложено подтвердить.

После открытия PowerShell выполните команду Get-WindowsSubsystemForLinux и вы увидите информацию о установленной версии WSL.

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

Открытие PowerShell

Чтобы открыть PowerShell, выполните следующие действия:

1. Нажмите на кнопку «Пуск» в левом нижнем углу экрана.
2. В появившемся меню найдите пункт «Windows PowerShell».
3. Щелкните правой кнопкой мыши на пункте «Windows PowerShell».
4. Выберите опцию «Запустить от имени администратора».

После выполнения этих действий откроется окно PowerShell, готовое к использованию.

Видео:

  • Как обновить айфон через айтюнс на компьютере windows
  • Как обновить айфон через itunes на компьютере windows
  • Как обновить айтюнс на компьютере до последней версии с windows
  • Как обновить windows server 2008 r2 до windows server 2012 r2
  • Как обновить windows movie maker