ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

windows10 更新 Ubuntu 20.04 LTS

2020-04-25 14:05:20  阅读:699  来源: 互联网

标签:LTS upgrade Windows windows10 Ubuntu release new 20.04


windows10 更新 Ubuntu 20.04 LTS

2020年4月23日,今天Windows 上的 Ubuntu 20.04 允许使用 Ubuntu Terminal 并运行 Ubuntu 命令行实用程序,包括 bash、ssh、git、apt 等。它要求 Windows 10 版本 16215.0 或更高版本,支持 ARM64 和 x64 体系结构。要注意的是,该程序在 Windows 10 S 上不受支持。

升级方法:

我这里只针对已有ubuntu的用户

  • 打开ubuntu 或 Windows Terminal,运行命令do-release-upgrade
frank@LAPTOP-0OCJTGJR:~$ do-release-upgrade
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.

可能会出现上面的报错信息。
打开文件sudo vi /etc/update-manager/release-upgrades

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.
#Prompt=lts
Prompt=normal

默认设置时Prompt=lts,将其改为Prompt=normal.,重新执行命令do-release-upgrade

期间会有两次人工参与

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done

Calculating the changes

Calculating the changes

Do you want to start the upgrade?


40 packages are going to be removed. 424 new packages are going to be
installed. 690 packages are going to be upgraded.

You have to download a total of 547 M. This download will take about
6 minutes with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

 Continue [yN]  Details [d]y

大概需要30’+的时间可以完成整个升级过程。

相关连接

Windows Subsystem for Linux(WSL)文件系统改进
第41章——从 Windows 命令行运行 Linux 工具
第42章——从 WSL 运行 Windows 工具

标签:LTS,upgrade,Windows,windows10,Ubuntu,release,new,20.04
来源: https://blog.csdn.net/xk_xx/article/details/105698805

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有