具体的按装流程请参考一下两篇博文
2.Windows Subsystem for Linux(WSL)安装记录
说一说我在安装过程中遇到的问题
1.要把系统升级到1709版本才能使用正式版的WSL(之前是beta版本),如果没有推送的话,你可以到这个网站直接用官方升级工具升级。
2.安装xming是后台运行的程序,其显示在任务栏,可以右键xming图表将菜单栏中的hide root windows取消即可看到主界面(在命令行中加DISPLAY=:0在xming中显示)
3.在使用apt-get安装软件时,例如
apt-get install Firefox
会报错:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
可以使用如下命令行解决
sudo -i
sudo apt-get update
通过sudo -i切换到root模式下 并更新软件源