DDoSolitary / LxRunOffline

A full-featured utility for managing Windows Subsystem for Linux (WSL)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couldn't get the value "DistributionName" on Windows 11

WordlessEcho opened this issue · comments

PS C:\Users\echo\Desktop> lxrunoffline.exe install `
>> -n AOSC `
>> -d C:\files\AOSC\ `
>> -f C:\Users\echo\Downloads\aosc-os_base+nvidia_20210602_amd64.tar.xz `
>> -s
[ERROR] Couldn't get the value "DistributionName" of the registry key "Software\Microsoft\Windows\CurrentVersion\Lxss\AppxInstallerCache".
Reason: 系统找不到指定的文件。
// Reason: System could not found specific file.

For exploring the bug further, run the command that lists distros. I think it's gonna fail too!

For an attempted workaround, try deleting the AppxInstallerCache entry. I think (more like feel) the code is expecting everything under the Lxss path to have a GUID and the... corresponding structure.

For an attempted fix in the code, I think the list_distro_id function is going to need to filter RegEnumKeyEx results to only include ones that are GUIDs.

For exploring the bug further, run the command that lists distros. I think it's gonna fail too!

For an attempted workaround, try deleting the AppxInstallerCache entry. I think (more like feel) the code is expecting everything under the Lxss path to have a GUID and the... corresponding structure.

For an attempted fix in the code, I think the list_distro_id function is going to need to filter RegEnumKeyEx results to only include ones that are GUIDs.

This solved my problem. Thanks!

For exploring the bug further, run the command that lists distros. I think it's gonna fail too!

For an attempted workaround, try deleting the AppxInstallerCache entry. I think (more like feel) the code is expecting everything under the Lxss path to have a GUID and the... corresponding structure.

For an attempted fix in the code, I think the list_distro_id function is going to need to filter RegEnumKeyEx results to only include ones that are GUIDs.

I also had to delete TryStoreWSL to go forward.

For exploring the bug further, run the command that lists distros. I think it's gonna fail too!

For an attempted workaround, try deleting the AppxInstallerCache entry. I think (more like feel) the code is expecting everything under the Lxss path to have a GUID and the... corresponding structure.

For an attempted fix in the code, I think the list_distro_id function is going to need to filter RegEnumKeyEx results to only include ones that are GUIDs.

I had to delete 'TryStoreWSL' in addition to 'AppxInstallerCache', leaving only GUID entries under 'Lxss'. After that, lxrunoffline works.