<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>WSL on Allens' Blog</title><link>https://allens.tech/tags/wsl/</link><description>Recent content from Allens' Blog</description><generator>Hugo</generator><language>en-us</language><managingEditor>allens.leng@gmail.com (Allens)</managingEditor><webMaster>allens.leng@gmail.com (Allens)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Sat, 30 May 2020 17:00:00 +0800</lastBuildDate><atom:link href="https://allens.tech/tags/wsl/index.xml" rel="self" type="application/rss+xml"/><item><title>初入 WSL</title><link>https://allens.tech/post/202005301700/</link><pubDate>Sat, 30 May 2020 17:00:00 +0800</pubDate><author>allens.leng@gmail.com (Allens)</author><guid>https://allens.tech/post/202005301700/</guid><description>
<![CDATA[<h1>初入 WSL</h1><p>Author: Allens(allens.leng@gmail.com)</p>
        
          <h2 id="描述">
<a class="header-anchor" href="#%e6%8f%8f%e8%bf%b0"></a>
描述
</h2><p>最近想给家里的电脑搞一套开发环境，由于虚拟机用的真的很难受，经同事强力推荐 <strong>WSL</strong> 轻便、速度快的特性，所以折腾了下，问题还是比较多的。</p>
<h2 id="一些问题">
<a class="header-anchor" href="#%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98"></a>
一些问题
</h2><h3 id="问题-1microsoft-store-无法打开">
<a class="header-anchor" href="#%e9%97%ae%e9%a2%98-1microsoft-store-%e6%97%a0%e6%b3%95%e6%89%93%e5%bc%80"></a>
问题 1：Microsoft Store 无法打开
</h3><p>解决方案 1：</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>netsh winsock reset
</span></span></code></pre></div><p>解决方案 2:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span><span style="color:#75715e"># 第一步</span>
</span></span><span style="display:flex;"><span>get-appxpackage *store* | remove-Appxpackage
</span></span><span style="display:flex;"><span><span style="color:#75715e"># 第二步</span>
</span></span><span style="display:flex;"><span>add-appxpackage -register <span style="color:#e6db74">&#34;C:\Program Files\WindowsApps\*Store*\AppxManifest.xml&#34;</span> -disabledevelopmentmode
</span></span></code></pre></div><p>解决方案 3：
<strong>系统</strong> -&gt; <strong>设置</strong> -&gt; <strong>系统</strong> -&gt; <strong>语言和位置</strong> -&gt; 更换区域为 <strong>加拿大</strong>
解决方案 4：
<strong>控制面板</strong> -&gt; <strong>网络和 Internet</strong> -&gt; <strong>Internet 选项</strong> -&gt; <strong>高级</strong> -&gt; 勾选 <strong>使用 TLS 1.1</strong>、<strong>使用 TLS 1.2</strong></p>
<h3 id="问题-2wsl-2-版本无法设置-set-version-命令不存在">
<a class="header-anchor" href="#%e9%97%ae%e9%a2%98-2wsl-2-%e7%89%88%e6%9c%ac%e6%97%a0%e6%b3%95%e8%ae%be%e7%bd%ae-set-version-%e5%91%bd%e4%bb%a4%e4%b8%8d%e5%ad%98%e5%9c%a8"></a>
问题 2：WSL 2 版本无法设置（ –set-version 命令不存在）
</h3><p>内核版本低于 <strong>18917</strong> 无法使用 <strong>WSL 2</strong>，查看<strong>Windows OS</strong> 内部版本的方式：</p>
        
        <hr><p>Published on 2020-05-30 at <a href='https://allens.tech/'>Allens' Blog</a>, last modified on 2020-05-30</p>]]></description><category>操作系统</category></item></channel></rss>