- 
        
升级 Windown 10 内置 Ubuntu 子系统
查看当前版本
打开命令提示符,输入
bash,然后输入lsb_release -a更换阿里云源
vim /etc/apt/sources.list内容替换为
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-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports 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-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse$ aptitude update $ aptitude safe-upgrade -y # 注1:升级过程中会提示你重启服务(restart services),选yes # 注2:还会出现文件冲突,保留当前版本(current version)即可,输入N把所有包升级至 16.04 (xenial) 的最新版,并重装丢失的aptitude包,最后清理无用包
$ apt-get dist-upgrade $ apt-get install aptitude $ apt-get autoremovelxrun 使用方法
对 LX 子系统执行管理操作 用法: /install - 安装子系统 可选参数: /y - 不提示用户接受 /uninstall - 卸载子系统 可选参数: /full - 执行完全卸载 /y - 不提示用户接受 /setdefaultuser - 配置将用于启动 bash 的子系统用户。如果该用户不存在,则会创建该用户。 可选参数: username - 提供用户名 /y - 如果提供了用户名,则不提示创建密码 /update - 更新子系统的包索引卸载旧版本
打开命令提示符
C:\WINDOWS\system32>lxrun /uninstall /full /y 这将在 Windows 中卸载 Ubuntu。 这将删除 Ubuntu 环境以及任何修改、新应用程序和用户数据。 正在卸载...安装新版本
打开命令提示符
C:\WINDOWS\system32>lxrun /install -- Beta 版功能 -- 这将在 Windows 上安装由 Canonical 分发的 Ubuntu, 根据其条款的授权参见此链接: https://aka.ms/uowterms 键入“y”继续: y 正在从 Windows 应用商店下载... 100% 正在提取文件系统,这将需要几分钟的时间... 请创建默认的 UNIX 用户帐户。该用户名不需要与 Windows 用户名匹配。 有关详细信息,请访问: https://aka.ms/wslusers 请输入新的 UNIX 用户名: root 找到 UNIX 用户: root 安装成功!不卸载直接升级Ubuntu 14.04:
sudo do-release-upgrade微软和Canonical官方均不推荐使用该方法,如果你要使用请参考:Ubuntu 16.04 安装指南。
 
文章归档
              
              
                2018 年 03 月
                2
              
              
              
                2018 年 01 月
                1
              
              
              
                2017 年 11 月
                1
              
              
              
                2017 年 08 月
                1
              
              
              
                2017 年 07 月
                1
              
              
              
                2016 年 11 月
                1
              
              
              
                2016 年 10 月
                1
              
              
              
                2016 年 09 月
                1
              
              
              
                2016 年 08 月
                2
              
              
              
                2016 年 07 月
                1
              
              
            
            文章日历
| 2017 年 07 月 | ||||||
|---|---|---|---|---|---|---|
| 日 | 一 | 二 | 三 | 四 | 五 | 六 | 
| 26 | 27 | 28 | 29 | 30 | 31 | 01 | 
| 02 | 03 | 04 | 05 | 06 | 07 | 08 | 
| 09 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 31 | 01 | 02 | 03 | 04 | 05 | 06 | 
文章标签
- Linux
 - Go
 - Yii
 - 新浪
 - CentOS
 - PHP
 - Git
 - WSL
 - Composer
 - Mac
 - 入职
 - Bootstrap
 - macOS
 - UCenter
 - 厦门
 - 出差
 - 长沙
 - 湖南卫视
 - 微博
 - Tengine
 - YUI
 - 泰国
 - pecl
 - 优化
 - GitLab
 - 迁移
 - rootless
 - 年会
 - 生日
 - Tengin
 - RedHat
 - Sphinx
 - cygwin
 - Windows
 - Tmux
 - Zsh
 - 升级
 - MySQL
 - sql_mode
 - Shadowsockets
 - 面向对象
 - HTTP
 - 状态码
 - grep
 - unoconv
 - PPT
 - Nginx
 - htpasswd
 - golang
 
最新评论
- 
                
                Tengine 2.2.2 配置 http2 协议出现的坑 - 
                
                Yii China 是官方唯一认可的中文社区 - 
                
                Go 语言中 json 的操作以及常见问题 - 
                
                新浪赴泰国曼谷和芭提雅团建 - 
                
                CentOS 安装 PHP7 - 
                
                WordPress 如何控制每页显示的条数 - 
                
                关于 phpMyAdmin 免输入用户名和密码,直接进入管理界面 - 
                
                PHP 5.4 的新特性 - 
                
                PHP 5.4 的新特性 - 
                
                PHP 5.4 的新特性