D01 Win10-WSL-Ubuntu16 安装

2021-06-04 05:02

阅读:598

标签:tool   .exe   模式   apt-get   tom   安装   nal   下载   hub   

1. 启用wsl并安装ubuntu 16.04
1. 安装ubuntu 16.04
1.2 wsl-terminal 安装
2. Ubuntu apt换源
TOC

1. 启用wsl并安装ubuntu 16.04

1. 安装ubuntu 16.04

  1. win10 设置 -- 更新和安全 -- 开发者选项 -- 开发人员模式
  2. 控制面板 -- 程序 -- 启用或者关闭windows功能 -- 适用于Linux的Windows子系统
  3. Microsoft Store -- Ubuntu 16.04 , 不要安装18.04 安装出现问题,安装ubuntu ,设置用户名密码
    或者通过这个链接唤醒进入store,安装ubuntu16 https://www.microsoft.com/zh-cn/p/ubuntu-1604-lts/9pjn388hp8c9?activetab=pivot%3Aoverviewtab
  4. cmd -- bash -- 进入ubuntu

1.2 wsl-terminal 安装

下载 https://github.com/goreliu/wsl-terminal/releases
解压到C:\Program Files (x86)\wsl-terminal

启动 直接启动open-wsl.exe
安装右键插件

cmd
cd "C:\Program Files (x86)\wsl-terminal"
wscript tools\1-add-open-wsl-terminal-here-menu.js

2. Ubuntu apt换源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list

#deb包
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
##测试版源  
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
# 源码  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
##测试版源  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  

sudo apt-get update



来自为知笔记(Wiz)


D01 Win10-WSL-Ubuntu16 安装

标签:tool   .exe   模式   apt-get   tom   安装   nal   下载   hub   

原文地址:https://www.cnblogs.com/jesper/p/10869650.html


评论


亲,登录后才可以留言!