参考:https://blog.youkuaiyun.com/yonggeit/article/details/76302186
1启用linux子系统
1.win键-->设置-->更新和安全-->开发者选项-->开发人员模式
2.控制面板->所有控制面板项->程序和功能(搜索“启用或关闭windows功能”)勾选适用于linux的windows子系统
3.搜索打开Microsoft store
4.搜索linux
5.点击下载,安装
6.cmd 中输入bash进入linux环境
7.root密码丢失恢复
在C盘中搜索,shadow shadow- 然后,拷贝其他系统中的文件予以替换
32位应用程序的支持 链接:https://www.zhihu.com/question/59818523/answer/348742772
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386 zlib1g-dev:i386
# for wsl
sudo apt install qemu-user-static
sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'
sudo service binfmt-support start