先进入控制面板->程序->启用或关闭Windows功能 打开 适用于Linux的Windows子系统 选项,确定
去应用商店下载Ubuntu,任意版本
启动Ubuntu,需要等一会,安装
设置用户名、密码,用户名不能有大写
换到中国的源,如清华的源,注意,请根据你的Ubuntu版本选择对应的源
使用如下命令,打开源的配置文件:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
sudo vim /etc/apt/sources.list #用vim打开
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiver
命令都是可以直接复制粘贴到Ubuntu的,要以root用户执行(sudo -i 进入)
按“i”,启用编辑模式,删除所有内容,把新的源右击粘贴上去,再按“Esc”关闭编辑模式,按“:wq”加回车保存。
用
sudo apt update
sudo apt upgrade -y
更新源
把隐藏项目更改为可见
C:\Users\Administrator\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\hczhao
miniconda安装的qiime2在此文件夹下
C:\Users\Administrator\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\hczhao\miniconda2\bin
cd /mnt/h
网友评论