网络运营 > 服务器 > Linux

windows10 更新Ubuntu20.04 LTS的方法步骤

56062人参与2020-06-14

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 工具

到此这篇关于windows10 更新ubuntu20.04 lts的方法步骤的文章就介绍到这了,更多相关windows10 更新ubuntu20.04 lts内容请搜索萬仟网以前的文章或继续浏览下面的相关文章希望大家以后多多支持萬仟网! 

您对本文有任何疑问!!点此进行留言回复

推荐阅读

猜你喜欢

windows10 更新Ubuntu20.04 LTS的方法步骤

06-14

浅谈linux模拟多线程崩溃和多进程崩溃

06-14

可以提高效率的十个Linux命令别名汇总

06-14

如何监控 Linux 服务器状态的方法

06-14

基于linux命令提取文件夹内特定文件路径

06-14

Ubuntu20.04安装Python3的虚拟环境教程详解

06-14

拓展阅读

大家都在看

windows10 更新Ubuntu20.04 LTS的方法步骤

06-14

Ubuntu 安装cuda10.1驱动的实现步骤

07-31

详解shell中脚本参数传递的两种方式

11-21

详解shell中脚本参数传递的两种方式

11-21

CentOS7运行.sh脚本提示syntax error: unexpected end of file的解决方法

05-12

shell命令实现当前目录下多个文件合并为一个文件的方法

03-19

Linux查找处理文件名后包含空格的文件(两种方法)

11-25

群晖NAS通过ZeroTier实现内网穿透(无需公网IP)

07-15

热门评论