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

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

Closed
WordlessEcho opened this issue Jun 29, 2021 · 4 comments · Fixed by #172
Closed

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

WordlessEcho opened this issue Jun 29, 2021 · 4 comments · Fixed by #172

Comments

@WordlessEcho
Copy link

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.
@WordlessEcho
Copy link
Author

WordlessEcho commented Jun 29, 2021

image
image

@Artoria2e5
Copy link
Contributor

Artoria2e5 commented Jun 30, 2021

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.

@WordlessEcho
Copy link
Author

WordlessEcho commented Jun 30, 2021

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!

@armanexplorer
Copy link

armanexplorer commented Apr 25, 2023

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.

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

Successfully merging a pull request may close this issue.

3 participants