{"id":354,"date":"2021-10-26T12:46:13","date_gmt":"2021-10-26T04:46:13","guid":{"rendered":"https:\/\/learningman.top\/?p=354"},"modified":"2021-10-26T12:46:13","modified_gmt":"2021-10-26T04:46:13","slug":"%e8%a7%a3%e5%86%b3-wsl-0x80041002-%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/learningman.top\/archives\/354","title":{"rendered":"\u89e3\u51b3 WSL 0x80041002 \u9519\u8bef"},"content":{"rendered":"<p>\u6211\u672c\u6765\u89c9\u5f97\u8fd9\u73a9\u610f\u513f\u6ca1\u5fc5\u8981\u8bb0\u4e0b\u6765\uff0c\u76f4\u5230\u6211\u7b2c\u4e09\u6b21\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\u53c8\u53bb\u67e5\u4e86\u4e00\u5708\u3002\u3002\u3002<\/p>\n<p>\u8fd9\u4e00\u95ee\u9898\u8fd8\u5e38\u548c\u9519\u8bef\u63d0\u793a <code>WslRegisterDistribution failed with error: 0x80041002<\/code>\u4e00\u540c\u51fa\u73b0<\/p>\n<h1>Solution<\/h1>\n<p>\u8fd9\u4e2a\u9519\u8bef\u4ee3\u7801\u5e94\u8be5\u5bf9\u5e94\u4e8e Hyper-V \u7684\u7f51\u7edc\u9519\u8bef\uff0c\u53ef\u4ee5\u5728\u4e8b\u4ef6\u65e5\u5fd7\u67e5\u770b\u5668\u4e2d\u68c0\u7d22\u5230\u5177\u4f53\u7684\u9519\u8bef\u3002<\/p>\n<p>\u5bf9\u6211\u800c\u8a00\uff0c\u5f15\u8d77\u9519\u8bef\u7684\u539f\u56e0\u662f Wintun \u91cd\u65b0\u5b89\u88c5 Userspace Tunnel \u7f51\u5361\u540e\u83ab\u540d\u963b\u585e\u4e86 Hyper-V \u4ea4\u6362\u673a\u7684\u542f\u52a8\uff0c\u89e3\u51b3\u65b9\u5f0f\u662f\u7981\u7528 Wintun \u7f51\u5361\u540e\u542f\u52a8\u4e00\u6b21 WSL\uff0c\u4ee5\u5141\u8bb8 Hyper-V Adapter \u4e3a\u5176\u521b\u5efa\u5177\u4f53\u7684\u6620\u5c04\u3002<\/p>\n<p>\u6620\u5c04\u521b\u5efa\u540e\uff0cWintun \u7f51\u5361\u53ef\u4ee5\u548c WSL \u540c\u65f6\u5de5\u4f5c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6ca1\u6709\u4f7f\u7528 Wintun\uff0c\u4f60\u5e94\u8be5\u68c0\u67e5\u81ea\u5df1\u6700\u8fd1\u6dfb\u52a0\u7684\u7f51\u7edc\u8bbe\u5907\u3002<\/p>\n<h1>Reference<\/h1>\n<p><a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/2352\">Blank Screen when Starting Up \u00b7 Issue #2352 \u00b7 microsoft\/WSL<\/a><br \/>\n<a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/4569\">Ubuntu (WSL) hangs on launch with black screen \u00b7 Issue #4569 \u00b7 microsoft\/WSL<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u672c\u6765\u89c9\u5f97\u8fd9\u73a9\u610f\u513f\u6ca1\u5fc5\u8981\u8bb0\u4e0b\u6765\uff0c\u76f4\u5230\u6211\u7b2c\u4e09\u6b21\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\u53c8\u53bb\u67e5\u4e86\u4e00\u5708\u3002\u3002\u3002 \u8fd9\u4e00\u95ee\u9898\u8fd8\u5e38\u548c\u9519\u8bef\u63d0\u793a WslRe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[66,65],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-8","tag-0x80041002","tag-wsl"],"_links":{"self":[{"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":0,"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"wp:attachment":[{"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learningman.top\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}