Ubuntu on wsl (windows subsystem for linux) Does Not Start When the Net Is Not Connected

Asked 2 years ago, Updated 2 years ago, 161 views

I have used Ubuntu 16.04 on wsl(wsl1) without any problems, but suddenly
After booting, the terminal opens for a second and then terminates immediately.

The following error message was displayed when booting from powershell:

wsl
Remote procedure call failed.

At this time, if you boot while connected to the network, it will boot normally, but the network will be
Booting while disconnected will force termination.
if the former boots successfully. Ping and remote ssh to linux server are still available.

The same was true when I uninstalled Ubuntu 16.04 and installed Ubuntu 18.04.
No other distribution is installed (legacy BoW has also been uninstalled).
Rebooting and signing out repeatedly, troubleshooting and resetting the Windows Store app, and "sfc/scannow" did not resolve the issue.
service remote desktop services, remote desktop usermode port director,
Setting the remote desktop configuration to autostart did not resolve the issue.
I am using windows defender instead of 3rd party anti-virus software.
I did a virus scan on windows defender, but no abnormalities were detected.
The operating system is Windows 10 home insider preview build 18970.

If you connect to the network, you can still use wsl, but
I'm in trouble because I can't use it offline.
I would appreciate it if you could let me know if there are any possible causes.
Thank you for your cooperation.

ubuntu wsl

2022-09-30 21:42

1 Answers

It's solved.
It seems to be due to an attempt to retrieve DNS information while offline and a failure.
By providing DNS for your local use according to the information below,
I was able to start wsl offline.

https://qiita.com/birdwatcher/items/3d62c244b48ec94939e3

Thank you for your comment.


2022-09-30 21:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.