next
记录一次win10安装WSL-Ubuntu1804
记录一次win10安装WSL-Ubuntu1804
Last edited 2022-11-8
type
Post
status
Published
date
Nov 8, 2022
slug
2022-11-08
summary
tags
知识
category
碎片杂文
icon
password
Property
Nov 8, 2022 06:00 AM

注意事项

💡
别用自带的MS Store,很慢,还不一定能成功

开启命令

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
管理员身份运行 Pow­er­Shell (WIN+X , A),输入上面的命令开启

下载两个工具

1 LxRunOffline

2 Ubuntu wsl手动安装发行包

3 改名解压

将Ubuntu_1804.2019.522.0_x64.appx改为Ubuntu_1804.2019.522.0_x64.zip,然后解压到你想要安装的目录

4 安装命令

lxrunoffline i -n <WSL名称> -d <安装路径> -f <安装包路径>.tar.gz
lxrunoffline i -n ubuntu -d D:\MyApp\Ubuntu18 -f D:\MyApp\Ubuntu18\install.tar.gz
例子
notion image
echo "export ALL_PROXY=\"socks5://127.0.0.1:1080\"" >> ~/.bashrc echo "export all_proxy=\"socks5://127.0.0.1:1080\"" >> ~/.bashrc sudo tee -a /etc/apt/apt.conf <<< 'Acquire::http::Proxy "http://127.0.0.1:1080";' > /dev/null sudo tee -a /etc/apt/apt.conf <<< 'Acquire::https::Proxy "http://127.0.0.1:1080";' > /dev/null
代理(按需设置)
请依据实际情况更改里面的协议,ip和端口
notion image

成功!折腾中…

  • 知识
  • 不规范.异类.KS的翻译方法一例一张图看懂翻译君软件工作流程