<p>The Windows Subsystem for Linux (WSL) installation should automatically set the Ubuntu locale to match the locale of your Windows install. Vous pouvez change the Ubuntu locale manually using the shell.</p>
<ul>
<li></li>
</ul>
<p>Run this command in bash.exe to change the language to US English:</p>
<pre><code class="lang-auto">sudo update-locale LANG=en_US.UTF8
</code></pre>
<p>If you get a <code>sudo: unable to resolve host</code> error whenever you run <code>sudo</code>,</p>
<ul>
<li></li>
</ul>
<p>Verify that you have a hostname set (with the <code>hostname</code> command).</p>
<ul>
<li>
<p>If it isn’t set, add it to the <code>/etc/hostname</code> file.</p>
</li>
<li>
<p>Ensure that <code>/etc/hostname</code> contains <em>only</em> the hostname.</p>
</li>
</ul>
<p>Edit the file with <code>sudoedit /etc/hostname</code><br>
(assuming vous pouvez get that to work); see <a href="https://superuser.com/q/785187/150988">this</a>.</p>
<ul>
<li>Ensure that your <code>/etc/hosts</code> file contains entries<br>
for your actual hostname (spelled <em>exactly</em> the same) and/or <code>localhost</code>.<br>
Again, use <code>sudoedit</code>.</li>
</ul>
<p>See <a href="https://askubuntu.com/q/59458/309110">Error message when I run sudo: unable to resolve host</a><br>
for more information.</p>
<ul>
<li>
<p>Relaunch the <code>bash.exe</code> for the changes to take effect.</p>
</li>
<li></li>
</ul>
<p>If that doesn’t fix it, try restarting the service:</p>
<pre><code class="lang-auto">sc stop lxssmanager
sc start lxssmanager
</code></pre>
<p>Si vous voulez to learn more about the bash in WSL,<br>
vous pouvez <a href="https://msdn.microsoft.com/en-us/commandline/wsl/faq">read the FAQ by Microsoft</a>.</p>