Skip to content
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

error code 0x8000ffff when try to install Ubuntu via WSL #9798

Closed
Shuyan-Lu opened this issue Mar 16, 2023 · 17 comments
Closed

error code 0x8000ffff when try to install Ubuntu via WSL #9798

Shuyan-Lu opened this issue Mar 16, 2023 · 17 comments

Comments

@Shuyan-Lu
Copy link

Version
Microsoft Windows [Version 10.0.25174.1010]

WSL Version
WSL 2
Kernel Version
unknown
PS C:\WINDOWS\system32> wsl --statuswsl --status
and I got output saying kernel not installed.
PS C:\WINDOWS\system32> wsl.exe --update
and it throws:
インストール中: Linux 用 Windows サブシステム
致命的なエラーです。

translation: Linux Windows Subsystem being installed. fatal error.

Distro Version
Ubuntu-22.04

Other Software
No response

Repro Steps
PS C:\WINDOWS\system32> wsl --list --online
インストールできる有効なディストリビューションの一覧を次に示します。
'wsl --install -d ' を使用してインストールします。

NAME FRIENDLY NAME
Ubuntu Ubuntu
Debian Debian GNU/Linux
kali-linux Kali Linux Rolling
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
Ubuntu-22.04 Ubuntu 22.04 LTS
OracleLinux_8_5 Oracle Linux 8.5
OracleLinux_7_9 Oracle Linux 7.9
SUSE-Linux-Enterprise-Server-15-SP4 SUSE Linux Enterprise Server 15 SP4
openSUSE-Leap-15.4 openSUSE Leap 15.4
openSUSE-Tumbleweed openSUSE Tumbleweed
PS C:\WINDOWS\system32> wsl --install -d Ubuntu
インストール中: Ubuntu
インストール中にエラーが発生しました。ディストリビューション名: 'Ubuntu' エラー コード: 0x8000ffff
(translation: error during installation. Distribution name: Ubuntu. Error code: 0x8000ffff)

Expected Behavior
Ubuntu successfully installed

Actual Behavior
It throw "Error code: 0x8000ffff"

Diagnostic Logs
WslLogs-2023-03-16_18-44-34.zip

@Gitnear
Copy link

Gitnear commented Mar 17, 2023

I had the same issue - Try to open ps without admin rights

@Shuyan-Lu
Copy link
Author

Thank you @Gitnear! It works!

@Shuyan-Lu
Copy link
Author

Shuyan-Lu commented Mar 20, 2023

Issue resolved

@Nickylailai
Copy link

Doesn't work...

@Fiewor
Copy link

Fiewor commented May 31, 2023

I had the same issue - Try to open ps without admin rights

Worked for me too. Thanks.

@KokilaSoumi
Copy link

I had the same issue - Try to open ps without admin rights

I had the same issue - Try to open ps without admin rights

Thanks, it helps!

@s3989
Copy link

s3989 commented Jun 27, 2023

I tried ,but it doesn't work

@danielcardea
Copy link

Thank you @Gitnear
Running the command in Powershell works. I tried Command prompt but had the same issue.

@firmanium
Copy link

Terima Kasih @Gitnear sudah seminggu bingung, tidak bisa install, akhirnya bisa. Matur Nuwun yo

@maxgira
Copy link

maxgira commented Sep 29, 2023

I had this issue on a Windows Server 2022 system, tried reinstalling WSL etc, but simply running wsl --update is what solved the problem in the end.

@hosseinhashemi
Copy link

For Windows 10 Users:

1 - I enabled the virtualization in BIOS and Hyper-v in Windows Features.
2 - Installed the Windows Subsystem For Linux from Microsoft Store.
3 - Installed Ubuntu from Microsoft Store.

@joaoggtinoco
Copy link

Tive esse problema em um sistema Windows Server 2022, tentei reinstalar o WSL etc., mas simplesmente executar wsl --updatefoi o que resolveu o problema no final.

Atualizar o WSL também foi minha solução.

@USSX-Hares
Copy link

USSX-Hares commented Feb 26, 2024

Same problem here.
As I am connecting to the server via SSH, de-elevating to a non-admin user is not an option.

PS C:\Users\***> wsl --install -d Ubuntu-22.04                  
Installing: Ubuntu 22.04 LTS
An error occurred during installation. Distribution Name: 'Ubuntu 22.04 LTS' Error Code: 0x8000ffff
PS C:\Users\***> wsl --update                 
Installing: Windows Subsystem for Linux
Catastrophic failure    
PS C:\Users\***> 

Logs attached.

PS C:\Users\***> Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
PS C:\Users\***> Set-ExecutionPolicy Bypass -Scope Process -Force
PS C:\Users\***> .\collect-wsl-logs.ps1
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
Log collection is running. Please reproduce the problem and once done press any key to save the logs.
Saving logs...
Logs saved in: C:\Users\***\WslLogs-2024-02-26_20-14-46.zip. Please attach that file to the GitHub issue.

WslLogs-2024-02-26_20-14-46.zip

@ryanhossain9797
Copy link

ryanhossain9797 commented Aug 2, 2024

I had this issue on a Windows Server 2022 system, tried reinstalling WSL etc but simply running wsl --update is what solved the problem in the end.

🎉 Confirming that running wsl --update fixed the issue on Windows Server 2022

@sanbeichahegongheguo
Copy link

I had the same issue - Try to open ps without admin rights

It works for me. Thanks!

@adambaaron
Copy link

Catastrophic Failure

@susongliulong
Copy link

@USSX-Hares Hey, bro! I meet the same problem with you, but finally I solve this problem in another way ! try to follow this link where you can find ANOTHER WAY TO DOWNLOAD "wsl" rather than using horrible 'cmd' !
install-manual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests