10

[注意] 这是 Windows 10 版本 1909 特有的历史问题,到那时还不能满足 Windows 终端要求。对于当今的大多数系统来说,这将不再是问题。

好吧,这应该是一个相当简单的问题,但如果没有任何可能,恐怕它会变成一个加载的问题,只是为了安装Microsoft Windows Terminal

微软视窗终端

是一个新的、现代、快速、高效、强大和高效的终端应用程序,适用于命令行工具和 shell(如命令提示符、PowerShell 和 WSL)的用户。它的主要功能包括多个选项卡、Unicode 和 UTF-8 字符支持、GPU 加速文本渲染引擎以及自定义主题、样式和配置。

这是一个开源项目,可在https://github.com/microsoft/terminal获得

在此处输入图像描述

  • 尝试使用 安装choco install microsoft-windows-terminal,我会得到:

      ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
    
      Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140
      Windows cannot install package Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.27810.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00" currently installed are: {Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe}
    

尽管我已经用尽了所有搜索并且确信我有依赖的东西:

PS > Get-AppxPackage -allusers *Microsoft.VCLibs.140.00* | Select Name, PackageFullName

Name                               PackageFullName
----                               ---------------
Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.26905.0_x64__8wekyb3d8bbwe
Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x64__8wekyb3d8bbwe
Microsoft.VCLibs.140.00            Microsoft.VCLibs.140.00_14.0.26706.0_x86__8wekyb3d8bbwe
Microsoft.VCLibs.140.00.UWPDesktop Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe

那么,再一次简单的问题,如何安装 Microsoft Windows Terminal?谢谢。

4

3 回答 3

10

直接从 Microsoft Store 安装它也不适合我。在 Windows 10 1909 中,我做到了(它是一个 msix)。请注意,appx 命令在 powershell 7.1中消失了。

Add-AppxPackage Microsoft.WindowsTerminal_0.11.1191.0_8wekyb3d8bbwe.msixbundle

它安装正常。

get-appxpackage microsoft.windowsterminal


Name              : Microsoft.WindowsTerminal
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 0.11.1191.0
PackageFullName   : Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.11.1191.0_x64__8wekyb3d8bbwe
IsFramework       : False
PackageFamilyName : Microsoft.WindowsTerminal_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
NonRemovable      : False
Dependencies      : {Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe,
                    Microsoft.VCLibs.140.00.UWPDesktop_14.0.27810.0_x64__8wekyb3d8bbwe}
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok

Alt-向下箭头设置以获取默认设置 json。

于 2020-05-05T21:45:44.253 回答
0

您应该安装此依赖项:Microsoft.VCLibs.140.00。您只能从名为“SW_DVD9_NTRL_Win_10_1903_32_64_ARM64_MultiLang_App_Update_X22-01657.ISO”的 VLSC ISO 映像中获取它(如果您的 Windows 10 版本是 1903/1909)。去谷歌上查询。具有活动链接的站点将位于搜索的顶部。不幸的是,这类软件包仅在 VLSC 内分发。

于 2020-05-02T20:18:21.420 回答
0

我建议使用 choco [它在 linux 上与 apt-get 类似 :( 但没有那么强大 ]。它包含大部分包。单击此处CHOCO安装 choco 并搜索 windows 终端包,只需在其中运行一个命令powershell[ADMIN PRIVILEGED] 并且您都可以使用。

于 2021-09-22T05:54:52.733 回答