您当前的位置:首页 > 网站建设 > 网站维护
| php | asp | css | H5 | javascript | Mysql | Dreamweaver | Delphi | 网站维护 | 帝国cms | React | 考试系统 | ajax | jQuery |

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

51自学网 2022-07-04 11:42:32
  网站维护

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-upgradeChecking for a new Ubuntu releaseThere is no development version of an LTS available.To upgrade to the latest non-LTS develoment releaseset 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=ltsPrompt=normal

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

期间会有两次人工参与

Checking package managerReading package lists... DoneBuilding dependency treeReading state information... DoneCalculating the changesCalculating the changesDo you want to start the upgrade?40 packages are going to be removed. 424 new packages are going to beinstalled. 690 packages are going to be upgraded.You have to download a total of 547 M. This download will take about6 minutes with your connection.Installing the upgrade can take several hours. Once the download hasfinished, the process cannot be canceled. Continue [yN] Details [d]y

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

相关连接

Windows Subsystem for Linux(WSL)文件系统改进
第41章
下载地址:
VMware安装ubuntu 20.04操作系统的教程图解
windows10安装ubuntu20.04双系统详细图文教程

51自学网,即我要自学网,自学EXCEL、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。
京ICP备13026421号-1