在 Windows Server 2019 Datacenter 上安装 Windows Terminal

问题描述

我正在尝试在此 Windows Server 2019 数据中心上安装 Windows 终端,使用 choco,阅读以下内容https://computingforgeeks.com/easy-way-to-install-windows-terminal-on-windows/


PS C:\Windows\system32> choco install microsoft-windows-terminal
Chocolatey v0.10.15
Installing the following packages:
microsoft-windows-terminal
By installing you accept licenses for the packages.
Progress: Downloading microsoft-windows-terminal 1.9.1942.0... 100%

microsoft-windows-terminal v1.9.1942.0 [Approved]
microsoft-windows-terminal package files install completed. Performing other installation steps.
The package microsoft-windows-terminal wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script,the installation will fail.
Note: To confirm automatically next time,use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a

ERROR: This package requires at least Windows 10 version 1903/OS build 18362.x.
The install of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages Failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyInstall.ps1'.
 See log for details.

解决方法

Server 2019 per their Github 不支持 Windows 终端。 Windows Server 2019 最终版本号为 17763,根据该软件包,Windows Terminal 至少需要 18362.x。

您必须使用较新版本的 Windows 或等到下一个 Windows Server 版本发布才能在 Windows Server 上使用它。基本上,Windows 终端需要 Windows 版本 2004(内部版本号 19041)或更新版本。