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

WSL2: After do-release-upgrade of Ubuntu-CommPrev 21.04 -> 21.10, launching shows: No schemas installed and exits. Related to gsettings I think #7801

Closed
GavinRay97 opened this issue Dec 6, 2021 · 2 comments

Comments

@GavinRay97
Copy link

GavinRay97 commented Dec 6, 2021

EDIT: This was fixed by running sudo apt install gsettings-desktop-schemas

I have no idea why.


image

Googling leads to a single result, a comment in an issue here:

Poking around, this error line seems to be coming from something called gsettings.
As you can see below, running wsl doesn't work/initialize a new session, but directly invoking wsl bash does?

Very odd:

image

A comment here suggests setting GSETTINGS_SCHEMA_DIR=/usr/share/glib-2.0/schemas:

But, this directory is empty for me:
image

@GavinRay97 GavinRay97 changed the title WSL2: After do-release-upgrade of Ubuntu-CommPrev 21.04 -> 21.10, launching shows: No schemas installed and exits WSL2: After do-release-upgrade of Ubuntu-CommPrev 21.04 -> 21.10, launching shows: No schemas installed and exits. Related to gsettings I think Dec 6, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Dec 7, 2021

Thanks for posting the solution. Closing this.

@OneBlue OneBlue closed this as completed Dec 7, 2021
@NotTheDr01ds
Copy link

It may be a "solution", but it's a pretty serious issue since it seems like the instance is bricked, and even a wsl -u root doesn't resolve (it requires circumventing the login/profile script at startup). However, I do agree that this should be closed since it is really a Canonical issue with the Community Preview (a problem in /etc/profile.d/wsl-integration.sh). It's been reported to Canonical here.

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

3 participants