winget-cli: Microsoft Terminal installation fails because of UI.Xaml higher version
Brief description of your issue
I installed WingetUI the other day, and today I noticed it kept trying to install Windows Terminal but kept failing. Checking the logs revealed that the installation failed with this error:
PS C:\Users\d> winget install Microsoft.WindowsTerminal
Gefunden Windows Terminal [Microsoft.WindowsTerminal] Version 1.18.3181.0
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Dieses Paket erfordert folgende Abhängigkeiten:
- Pakete
Microsoft.UI.Xaml.2.8 [>= 8.2306.22001.0]
Abhängigkeiten werden installiert:
(1/1) Gefunden Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
████████████████████████████▌ 95%
Installation fehlgeschlagen mit Exitcode: 0x80073d06 : Das Paket konnte nicht installiert werden, da bereits eine h�here Version des Pakets installiert ist.
Eine höhere Version dieser Anwendung ist bereits installiert.
The same error happens when trying to install the Microsoft.UI.Xaml.2.8 package directly. I figured reinstalling the package might work, but that didn’t work either:
PS C:\Users\d> winget uninstall Microsoft.UI.Xaml.2.8
Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.
PS C:\Users\d> winget uninstall Microsoft.UI.Xaml
Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.
No package found. It’s also not in appwiz.cpl or the installed apps section - so I’m not really sure if it really is installed or not.
I stupidly uninstalled Windows Terminal in hopes that this fixes something, but it just refused to install it with the same error. Interestingly, installing it via the Microsoft Store UI worked without a hitch.
Steps to reproduce
Not sure what caused this issue to happen in the first place.
Expected behavior
Package is updated/installed as expected.
Actual behavior
Installation/update is cancelled because of a dependency that is (supposedly) already installed with a higher version.
Environment
Windows-Paket-Manager v1.6.3133
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
Windows: Windows.Desktop v10.0.22631.2715
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.21.3133.0
WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------
Protokolle %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Benutzereinstellungen %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer) C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86) C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads %USERPROFILE%\Downloads
Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung https://aka.ms/winget-privacy
Lizenzvereinbarung https://aka.ms/winget-license
Hinweise von Drittanbietern https://aka.ms/winget-3rdPartyNotice
Startseite https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale
Administratoreinstellung Status
-----------------------------------------------------
LocalManifestFiles Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride Deaktiviert
LocalArchiveMalwareScanOverride Deaktiviert
WingetUI 2.1.1
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 25
- Comments: 20 (1 by maintainers)
optionally you can skip dependency resolution
winget update Microsoft.WindowsTerminal --skip-dependencies
A workaround until this dependency issue gets resolved is to try installing without the dependency by passing
--skip-dependencies
Try
winget upgrade --id Microsoft.WindowsTerminal --skip-dependencies
ifwinget install
fails to grab the latest version.I also have the reported issue, the dependency Microsoft.UI.Xaml fails to install.
This likely is not an issue with Windows Terminal but with the Microsoft.UI.Xaml winget package.
Using the
winget install Microsoft.WindowsTerminal --skip-dependencies
as suggested by many works.Me too. The version I already have is Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64__8wekyb3d8bbwe
For some reason the WindowsTerminal installer keeps trying to install an older version UI.Xaml (8.2306.22001.0) and failing
That will downgrade it to an older version than is already installed, WinGet is grabbing an older version as of when the issue was first opened
Mee too! Thank you!
same problem here
If you install it from here it works.
https://github.com/microsoft/terminal/releases/tag/v1.18.3181.0
https://github.com/microsoft/terminal/releases/download/v1.18.3181.0/Microsoft.WindowsTerminal_1.18.3181.0_8wekyb3d8bbwe.msixbundle
The version it is grabbing is older (you can see the url it is grabbing the file from in the terminal window during the download) https://github.com/microsoft/terminal/releases/tag/v1.18.3181.0 has the newer one that is listed (that is based on where it was trying to grab the file from but it grabs a version that is older than 1.18.3181.0 )