{"id":26750,"date":"2024-01-09T20:06:28","date_gmt":"2023-01-28T08:20:10","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/"},"modified":"2025-08-11T22:53:43","modified_gmt":"2025-08-11T14:53:43","slug":"%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/","title":{"rendered":"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu"},"content":{"rendered":"<h1>\u7b80\u8981\u6982\u62ec<\/h1>\n<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5728Windows\u4e0a\u5b89\u88c5WSL2\u5e76\u8fd0\u884cUbuntu\u7684\u65b9\u6cd5\u3002\u540c\u65f6\uff0c\u8fd8\u5c06\u8be6\u7ec6\u89e3\u91ca\u5982\u4f55\u5728VSCode\u4e0a\u4f7f\u7528Ubuntu\u3002<\/p>\n<h1>\u76ee\u6807<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Windows PC\u3057\u304b\u6301\u3063\u3066\u3044\u306a\u3044\u304cUbuntu\u3092\u89e6\u3063\u3066\u307f\u305f\u3044\u4eba<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">cmd\u306b\u6163\u308c\u305a\u3001bash\u3067\u306e\u958b\u767a\u3092\u884c\u3044\u305f\u3044\u4eba (dir\u3058\u3083\u306a\u304f\u3066ls\u306e\u304c\u697d\u3067\u3059\u3088\u306d)<\/ul>\n<\/li>\n<\/ul>\n<p>Windows\u4e0a\u3067Docker\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044(WSL1\u3067\u3082\u51fa\u6765\u308b\u305d\u3046\u3067\u3059\u304c\u500b\u4eba\u7684\u306b\u306fWSL2\u306e\u65b9\u304c\u30aa\u30b9\u30b9\u30e1)<\/p>\n<h1>\u5b89\u88c5WSL2<\/h1>\n<p>\u4ee5\u7ba1\u7406\u5458\u6a21\u5f0f\u542f\u52a8PowerShell\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u542f\u7528\u9002\u7528\u4e8eLinux\u7684Windows\u5b50\u7cfb\u7edf\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"n\">dism.exe<\/span> <span class=\"nx\">\/online<\/span> <span class=\"nx\">\/enable-feature<\/span> <span class=\"nx\">\/featurename:Microsoft-Windows-Subsystem-Linux<\/span> <span class=\"nx\">\/all<\/span> <span class=\"nx\">\/norestart<\/span>\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u786e\u8ba4\u6709\u5173WSL2\u7684\u6267\u884c\u8981\u6c42\u3002<\/p>\n<blockquote><p>\u5982\u679c\u662fx64\u7cfb\u7edf\uff1a\u9700\u4f7f\u75281903\u7248\u672c\u53ca\u4ee5\u4e0a\uff0c\u6784\u5efa\u7248\u672c\u9700\u572818362\u4ee5\u4e0a\u3002<br \/>\n\u5982\u679c\u662fARM64\u7cfb\u7edf\uff1a\u9700\u4f7f\u75282004\u7248\u672c\u53ca\u4ee5\u4e0a\uff0c\u6784\u5efa\u7248\u672c\u9700\u572819041\u4ee5\u4e0a\u3002<\/p><\/blockquote>\n<p>\u901a\u8fc7\u5728Windows\u641c\u7d22\u6846\u4e2d\u8f93\u5165winver\uff0c\u60a8\u53ef\u4ee5\u786e\u8ba4\u5f53\u524d\u7248\u672c\u3002<\/p>\n<p>\u307e\u305f\u300118362\u3088\u308a\u524d\u306e\u30d3\u30eb\u30c9\u306fWSL2\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001Windows\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3088\u308aWindows\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6700\u65b0\u306e\u3082\u306e\u306b\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u5982\u679c\u6ee1\u8db3\u6267\u884c\u7684\u8981\u6c42\uff0c\u8bf7\u5728\u4ee5\u7ba1\u7406\u5458\u6a21\u5f0f\u6253\u5f00\u7684PowerShell\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4ee5\u542f\u7528\u865a\u62df\u673a\u529f\u80fd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"n\">dism.exe<\/span> <span class=\"nx\">\/online<\/span> <span class=\"nx\">\/enable-feature<\/span> <span class=\"nx\">\/featurename:VirtualMachinePlatform<\/span> <span class=\"nx\">\/all<\/span> <span class=\"nx\">\/norestart<\/span> \r\n<\/code><\/pre>\n<p>\u5728\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u4e4b\u540e\uff0c\u8bf7\u91cd\u65b0\u542f\u52a8\u7535\u8111\u3002<\/p>\n<p>\u518d\u8d77\u52d5\u304c\u7d42\u308f\u3063\u305f\u3089\u3001Linux\u30ab\u30fc\u30cd\u30eb\u66f4\u65b0\u30d7\u30ed\u30b0\u30e9\u30e0 \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3088\u308a\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6307\u793a\u306b\u5f93\u3048\u3070\u52dd\u624b\u306b\u8272\u3005\u3084\u3063\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306bPowershell\u3092\u8d77\u52d5\u3057\u3066\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066WSL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30922\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"n\">wsl<\/span> <span class=\"nt\">--set-default-version<\/span> <span class=\"nx\">2<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067WSL2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h1>Ubuntu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u5b89\u88c5Ubuntu\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p>\u5728\u5b89\u88c5Ubuntu\u65b9\u9762\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4efb\u4f55\u65b9\u5f0f\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u7279\u522b\u8981\u6c42\u7684\u8bdd\uff0c\u6211\u5efa\u8bae\u4f60\u4eceMicrosoft Store\u4e0b\u8f7d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c194dd0c9c81e0f5ad351\/21-0.png\" alt=\"microstore.png\" \/><\/div>\n<p>\u5f53Ubuntu\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728Windows\u7684\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cubuntu\u201d\u5e76\u542f\u52a8\u76f8\u5e94\u7684Ubuntu\u3002<\/p>\n<p>\u5f53\u60a8\u542f\u52a8Ubuntu\u65f6\uff0c\u53ea\u6709\u5728\u521d\u6b21\u542f\u52a8\u65f6\u624d\u4f1a\u663e\u793a\u4e0b\u9762\u8fd9\u6837\u7684\u6d88\u606f\uff0c\u8bf7\u8f93\u5165\u76f8\u5e94\u90e8\u5206\u5185\u5bb9\u3002\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u5bc6\u7801\u4e0d\u4f1a\u5728CUI\u4e0a\u663e\u793a\u51fa\u6765\u3002<\/p>\n<pre class=\"post-pre\"><code>Installing, this may take a few minutes...\r\nPlease create a default UNIX user account. The username does not need to match your Windows username.\r\nFor more information visit: https:\/\/aka.ms\/wslusers\r\nEnter new UNIX username: &lt;\u30e6\u30fc\u30b6\u30fc\u540d&gt;\r\nEnter new UNIX password: &lt;\u30d1\u30b9\u30ef\u30fc\u30c9&gt;\r\nRetype new UNIX password: &lt;\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u5165\u529b&gt;\r\n<\/code><\/pre>\n<p>\u5f53\u4f60\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u65f6\uff0c\u5c06\u521b\u5efa\u4e00\u4e2a\u7528\u6237\uff0c\u5982\u4e0b\u6240\u793a\u3002<br \/>\n\u8fd9\u6b21\u6211\u4eec\u5c06\u7528\u6237\u540d\u6307\u5b9a\u4e3amaru\uff0c\u6240\u4ee5\u663e\u793a\u4e3amaru\u3002<\/p>\n<pre class=\"post-pre\"><code>Installing, this may take a few minutes...\r\nPlease create a default UNIX user account. The username does not need to match your Windows username.\r\nFor more information visit: https:\/\/aka.ms\/wslusers\r\nEnter new UNIX username: maru\r\nEnter new UNIX password:\r\nRetype new UNIX password:\r\npasswd: password updated successfully\r\nInstallation successful!\r\nTo run a <span class=\"nb\">command <\/span>as administrator <span class=\"o\">(<\/span>user <span class=\"s2\">\"root\"<\/span><span class=\"o\">)<\/span>, use <span class=\"s2\">\"sudo &lt;command&gt;\"<\/span><span class=\"nb\">.<\/span>\r\nSee <span class=\"s2\">\"man sudo_root\"<\/span> <span class=\"k\">for <\/span>details.\r\n\r\nmaru@DESKTOP-0H4IUSI:~<span class=\"err\">$<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067Windows\u4e0a\u3067Ubuntu\u3092\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u72b6\u614b\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h1>VSCode\u3067Ubuntu\u3092\u4f7f\u3046<\/h1>\n<p>\u6211\u5011\u5c07\u89e3\u91cb\u5982\u4f55\u4f7f\u7528VSCode\u5728Ubuntu\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c194dd0c9c81e0f5ad351\/30-0.png\" alt=\"vscode_wsl.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c194dd0c9c81e0f5ad351\/31-0.png\" alt=\"vscode_ubuntu.png\" \/><\/div>\n<p>\u65b0\u3057\u304fVSCode\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u7acb\u3061\u4e0a\u304c\u308b\u306e\u3067Ctrl + Shift + @\u3092\u62bc\u3059\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>To run a <span class=\"nb\">command <\/span>as administrator <span class=\"o\">(<\/span>user <span class=\"s2\">\"root\"<\/span><span class=\"o\">)<\/span>, use <span class=\"s2\">\"sudo &lt;command&gt;\"<\/span><span class=\"nb\">.<\/span>\r\nSee <span class=\"s2\">\"man sudo_root\"<\/span> <span class=\"k\">for <\/span>details.\r\n\r\nmaru@DESKTOP-0H4IUSI:~<span class=\"nv\">$ <\/span>\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067VSCode\u3068Ubuntu\u306e\u9023\u643a\u304c\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\uff01\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n<h1>\u6700\u5f8c\u306b<\/h1>\n<p>3\u53f0\u306ePC\u3067\u4e0a\u8a18\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u884c\u3063\u305f\u306e\u3067\u3059\u304c\u30011\u53f0\u306ePC\u3067WSL2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6b63\u5e38\u306b\u5b8c\u4e86\u3057\u306a\u3044\u30b1\u30fc\u30b9\u304c\u898b\u3089\u308c\u307e\u3057\u305f\u3002(1\u6642\u9593\u7d4c\u3063\u3066\u3082\u7d42\u308f\u3089\u305aPC\u304c\u30d5\u30ea\u30fc\u30ba\u3059\u308b)<\/p>\n<p>\u6211\u4e4b\u524d\u4f7f\u7528\u7684\u662f\u4e00\u53f0\u8fd0\u884cUbuntu\u7684PC\u4e0a\u7684WSL1\uff0c\u4f46\u662f\u5728\u5378\u8f7dUbuntu\u540e\u5b89\u88c5\u4e86WSL2\u540e\uff0c\u91cd\u65b0\u5b89\u88c5Ubuntu\u975e\u5e38\u987a\u5229\u3002<\/p>\n<p>\u5982\u679c\u5b89\u88c5WSL2\u82b1\u8d39\u4e86\u5f88\u957f\u65f6\u95f4\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u6cd5\u3002<br \/>\n\uff08\u8bf7\u6ce8\u610f\uff0c\u8fd9\u5e76\u4e0d\u4fdd\u8bc1\u80fd\u6b63\u5e38\u8fd0\u884c\uff0c\u8bf7\u81ea\u884c\u627f\u62c5\u8d23\u4efb\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u8981\u6982\u62ec \u672c\u6587\u5c06\u4ecb\u7ecd\u5728Windows\u4e0a\u5b89\u88c5WSL2\u5e76\u8fd0\u884cUbuntu\u7684\u65b9\u6cd5\u3002\u540c\u65f6\uff0c\u8fd8\u5c06\u8be6\u7ec6\u89e3\u91ca\u5982\u4f55\u5728VSCod [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-26750","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728-windows-10-\u4e0a\u4f7f\u7528-wsl2-\u8fd0\u884c-ubuntu-\u5e76\u4f7f\u7528-vscode-\u4f7f\u7528-ubuntu\u3002-4\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728-windows-10-\u4e0a\u4f7f\u7528-wsl2-\u8fd0\u884c-ubuntu-\u5e76\u4f7f\u7528-vscode-\u4f7f\u7528-ubuntu\u3002-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-28T08:20:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T14:53:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c194dd0c9c81e0f5ad351\/21-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/\",\"name\":\"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-28T08:20:10+00:00\",\"dateModified\":\"2025-08-11T14:53:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"description\":\"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728-windows-10-\u4e0a\u4f7f\u7528-wsl2-\u8fd0\u884c-ubuntu-\u5e76\u4f7f\u7528-vscode-\u4f7f\u7528-ubuntu\u3002-4\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu","og_description":"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728-windows-10-\u4e0a\u4f7f\u7528-wsl2-\u8fd0\u884c-ubuntu-\u5e76\u4f7f\u7528-vscode-\u4f7f\u7528-ubuntu\u3002-4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-28T08:20:10+00:00","article_modified_time":"2025-08-11T14:53:43+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657c194dd0c9c81e0f5ad351\/21-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/","name":"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-28T08:20:10+00:00","dateModified":"2025-08-11T14:53:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"description":"\u5173\u4e8e\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubun\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728 Windows 10 \u4e0a\u4f7f\u7528 WSL2 \u8fd0\u884c Ubuntu \u5e76\u4f7f\u7528 VSCode \u4f7f\u7528 Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8-windows-10-%e4%b8%8a%e4%bd%bf%e7%94%a8-wsl2-%e8%bf%90%e8%a1%8c-ubuntu-%e5%b9%b6%e4%bd%bf%e7%94%a8-vscode-%e4%bd%bf%e7%94%a8-ubuntu%e3%80%82-4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=26750"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26750\/revisions"}],"predecessor-version":[{"id":99715,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/26750\/revisions\/99715"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=26750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=26750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=26750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}