windows10 更新Ubuntu20.04 LTS的方法步骤
2020年4月23日,今天Windows上的Ubuntu20.04允许使用UbuntuTerminal并运行Ubuntu命令行实用程序,包括bash、ssh、git、apt等。它要求Windows10版本16215.0或更高版本,支持ARM64和x64体系结构。要注意的是,该程序在Windows10S上不受支持。
升级方法:
我这里只针对已有ubuntu的用户
打开ubuntu或WindowsTerminal,运行命令do-release-upgrade。
frank@LAPTOP-0OCJTGJR:~$do-release-upgrade CheckingforanewUbunturelease ThereisnodevelopmentversionofanLTSavailable. Toupgradetothelatestnon-LTSdevelomentrelease setPrompt=normalin/etc/update-manager/release-upgrades.
可能会出现上面的报错信息。
打开文件sudovi/etc/update-manager/release-upgrades
#Defaultbehaviorforthereleaseupgrader. [DEFAULT] #Defaultpromptingbehavior,validoptions: # #never-Nevercheckfor,orallowupgradingto,anewrelease. #normal-Checktoseeifanewreleaseisavailable.Ifmorethanonenew #releaseisfound,thereleaseupgraderwillattempttoupgradeto #thesupportedreleasethatimmediatelysucceedsthe #currently-runningrelease. #lts-ChecktoseeifanewLTSreleaseisavailable.Theupgrader #willattempttoupgradetothefirstLTSreleaseavailableafter #thecurrently-runningone.Notethatifthisoptionisusedand #thecurrently-runningreleaseisnotitselfanLTSreleasethe #upgraderwillassumepromptwasmeanttobenormal. #Prompt=lts Prompt=normal
默认设置时Prompt=lts,将其改为Prompt=normal.,重新执行命令do-release-upgrade
期间会有两次人工参与
Checkingpackagemanager Readingpackagelists...Done Buildingdependencytree Readingstateinformation...Done Calculatingthechanges Calculatingthechanges Doyouwanttostarttheupgrade? 40packagesaregoingtoberemoved.424newpackagesaregoingtobe installed.690packagesaregoingtobeupgraded. Youhavetodownloadatotalof547M.Thisdownloadwilltakeabout 6minuteswithyourconnection. Installingtheupgradecantakeseveralhours.Oncethedownloadhas finished,theprocesscannotbecanceled. Continue[yN]Details[d]y
大概需要30'+的时间可以完成整个升级过程。
相关连接
WindowsSubsystemforLinux(WSL)文件系统改进
第41章——从Windows命令行运行Linux工具
第42章——从WSL运行Windows工具
到此这篇关于windows10更新Ubuntu20.04LTS的方法步骤的文章就介绍到这了,更多相关windows10更新Ubuntu20.04LTS内容请搜索毛票票以前的文章或继续浏览下面的相关文章希望大家以后多多支持毛票票!