我正在尝试在Windows Server2019(标准版,版本1809,内部版本17763)上安装WinGet,但是我无法让它工作……
当尝试从this blog post的“直接安装”链接时,我得到以下链接ms-appinstaller:?source=https://aka.ms/getwinget,我的浏览器无法理解它,因为我没有应用程序安装程序。
所以我从同一篇博文中提到的GitHub发布页面下载了Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle (应该同时包含应用程序安装程序和WinGet)。因为我的系统没有得到.appxbundle文件,所以我尝试使用Powershell安装它:
Add-AppxPackage ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle"但它抱怨说,它错过了Microsoft.VCLibs.140.00.UWPDesktop
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot install package Microsoft.DesktopAppInstaller_1.11.11451.0_x64__8wekyb3d8bbwe
because this package depends on a framework that could not be found. Provide the framework
"Microsoft.VCLibs.140.00.UWPDesktop" 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.29231.0, along with this package to install. The frameworks with name
"Microsoft.VCLibs.140.00.UWPDesktop" currently installed显然,这是一个也可以作为appx下载的"C++ Runtime framework packages for Desktop Bridge";首先安装它,然后安装DesktopAppInstaller/WinGet捆绑包,没有任何错误:
Add-AppxPackage ".\Microsoft.VCLibs.x64.14.00.Desktop.appx"
Add-AppxPackage ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle"然而,在这一点上,我似乎有应用程序安装程序(因为它现在可以识别.appx/.appxbundle文件),但没有WinGet客户端,因为当我从命令提示符运行它时,它会告诉我:
'winget' is not recognized as an internal or external command, operable program or batch file.如何让WinGet在Windows Server 2019机器上运行?
发布于 2021-10-07 14:30:44
不支持Windows Server 2019和Windows Server 2022。可以安装Windows程序包管理器,但这些SKU中不包括依赖项。
https://github.com/microsoft/winget-cli/issues/754#issuecomment-902798802
https://stackoverflow.com/questions/68100663
复制相似问题