{"id":952,"date":"2023-01-26T17:42:23","date_gmt":"2023-01-26T09:42:23","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=952"},"modified":"2023-01-26T17:42:28","modified_gmt":"2023-01-26T09:42:28","slug":"wsl%e4%b8%8b%e8%bd%bd%e3%80%81%e5%ae%89%e8%a3%85%e4%b8%8e%e8%ae%be%e7%bd%aewindows-subsystem-for-linux","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=952","title":{"rendered":"WSL\u4e0b\u8f7d\u3001\u5b89\u88c5\u4e0e\u8bbe\u7f6e(Windows Subsystem for Linux)"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.bilibili.com\/read\/cv15545635\">WSL\u4e0b\u8f7d\u3001\u5b89\u88c5\u4e0e\u8bbe\u7f6e(Windows Subsystem for Linux) &#8211; \u54d4\u54e9\u54d4\u54e9 (bilibili.com)<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>www.bilibili.com\/read\/cv15545635<\/p>\n\n\n\n<p>1\u3001\u6253\u5f00\u63a7\u5236\u9762\u677f&#8211;&gt;\u6253\u5f00\u7a0b\u5e8f&#8211;&gt;\u9009\u62e9\u542f\u7528\u6216\u5173\u95edWindows\u529f\u80fd<\/p>\n\n\n\n<p>2\u3001\u4e0b\u7ffb\u81f3\u5e95\u90e8\uff0c\u9009\u62e9\u9002\u7528\u4e8eLinux\u7684Windows\u5b50\u7cfb\u7edf\uff0c\u70b9\u51fb\u786e\u5b9a<\/p>\n\n\n\n<p>3\u3001\u9009\u62e9\u7acb\u5373\u91cd\u542f\u7535\u8111<\/p>\n\n\n\n<p>4\u3001\u7535\u8111\u91cd\u542f\u540e\uff0c\u5728Microsoft Store\u4e0b\u8f7dUbuntu\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210<\/p>\n\n\n\n<p>5\u3001\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u627e\u5230Ubuntu\uff0c\u6253\u5f00<\/p>\n\n\n\n<p>6\u3001\u9996\u6b21\u6253\u5f00\u62a5\u9519\u5904\u7406<\/p>\n\n\n\n<p>\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165wsl &#8211;set-default-version 1<\/p>\n\n\n\n<p>7\u3001\u91cd\u65b0\u6253\u5f00Ubuntu<\/p>\n\n\n\n<p>8\u3001\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\uff0c\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801(\u7528\u6237\u540d\u5168\u5c0f\u5199)\uff0cWSL\u5b89\u88c5\u5b8c\u6210<\/p>\n\n\n\n<p>9\u3001\u66f4\u6539Ubuntu\u6e90\uff1a<\/p>\n\n\n\n<p>\u2460\u5728Ubuntu\u4e2d\u8f93\u5165\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<p>&nbsp; &nbsp;sudo cp \/etc\/apt\/sources.list \/etc\/apt\/sources.list.bak<\/p>\n\n\n\n<p>&nbsp; &nbsp;lsb_release -c<\/p>\n\n\n\n<p>&nbsp; &nbsp;sudo vim \/etc\/apt\/sources.list<\/p>\n\n\n\n<p>\u2461\u8f93\u5165ggdG\u5220\u9664sources.list\u4e2d\u7684\u6240\u6709\u5185\u5bb9<\/p>\n\n\n\n<p>\u2462\u8f93\u5165i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<\/p>\n\n\n\n<p>\u2463\u5c06\u4ee5\u4e0b\u5185\u5bb9\u9ecf\u8d34\u5230sources.list\u4e2d(\u5c06\u9ed8\u8ba4\u7684\u4e0b\u8f7d\u6e90\u66ff\u6362\u4e3a\u963f\u91cc\u6e90)<\/p>\n\n\n\n<h1>\u9ed8\u8ba4\u6ce8\u91ca\u4e86\u6e90\u7801\u955c\u50cf\u4ee5\u63d0\u9ad8 apt update \u901f\u5ea6\uff0c\u5982\u6709\u9700\u8981\u53ef\u81ea\u884c\u53d6\u6d88\u6ce8\u91ca<\/h1>\n\n\n\n<p>deb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal main restricted universe multiverse<\/p>\n\n\n\n<h1>deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal main restricted universe multiverse<\/h1>\n\n\n\n<p>deb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-security main restricted universe multiverse<\/p>\n\n\n\n<h1>deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-security main restricted universe multiverse<\/h1>\n\n\n\n<p>deb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-updates main restricted universe multiverse<\/p>\n\n\n\n<h1>deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-updates main restricted universe multiverse<\/h1>\n\n\n\n<p>deb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-proposed main restricted universe multiverse<\/p>\n\n\n\n<h1>deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-proposed main restricted universe multiverse<\/h1>\n\n\n\n<p>deb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-backports main restricted universe multiverse<\/p>\n\n\n\n<h1>deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-backports main restricted universe multiverse<\/h1>\n\n\n\n<p>\u2464\u6309Esc\uff0c\u8f93\u5165:wq\uff0c\u4fdd\u5b58\u5e76\u9000\u51fa<\/p>\n\n\n\n<p>\u2465\u5728Ubuntu\u4e2d\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u66f4\u65b0<\/p>\n\n\n\n<p>sudo apt-get update<\/p>\n\n\n\n<p>sudo apt-get upgrade<\/p>\n\n\n\n<p>10\u3001WSL\u7684\u5b89\u88c5\u548c\u8bbe\u7f6e\u521d\u6b65\u5b8c\u6210 \u4f5c\u8005\uff1aVaciller https:\/\/www.bilibili.com\/read\/cv15545635 \u51fa\u5904\uff1abilibili<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WSL\u4e0b\u8f7d\u3001\u5b89\u88c5\u4e0e\u8bbe\u7f6e(Windows Subsy&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=952\">Continue reading<span class=\"screen-reader-text\">WSL\u4e0b\u8f7d\u3001\u5b89\u88c5\u4e0e\u8bbe\u7f6e(Windows Subsystem for Linux)<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,12],"tags":[176],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/952"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=952"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/952\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/952\/revisions\/953"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}