New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade of WindowsTerminal fails with 0x80070002 (System cant find the file specified) #1705
Comments
Can you run
Mine seems to imply it's trying to remove a previous version of Windows Terminal (even though it's not installed) and failing. |
Hi,
I looked through the log, 2 things:
|
You shouldn't need special rights, since you don't need special rights to install WT. You should be able to upgrade it from WT too, as winget will warn you that you need to restart the application to complete the upgrade. It installs/upgrades just fine from the App Installer GUI too, so I'm not sure what the difference is here. It's not like it's trying to pull dependencies or something. |
I can also replicate this with other Appx packages (in fact, I can't find one that installs, at least inside a Sandbox):
Edit: It works fine for me in a VM. Weird. |
Same error for me :
|
Having the same issue
I had to reinstall, because fonts installed via scoop (issue) keep breaking my oh-my-posh setup (fonts) |
If anyone runs into this problem just trying to install Windows Terminal, you can use the Microsoft Store source instead: winget install "windows terminal" --source "msstore" |
Many Group Policies block MsStore. It's not a real work around. |
I just installed Windows Terminal v1.15.2874.0 via winget without any issue. This is resolved for me. |
Nope, didn't work for me, still getting Exitcode 0x80070002 |
Hi, * As of today, it still does not work.
Trying to upgrade WindowsTerminal still gives the 0x8007002 error:
So, still seems to be an issue. What I would be interested in is the actual error code ... any more details or links what this code actually means? |
I was getting the same error for months until yesterday. Windows Package Manager v1.3.2691 |
I ran into this error too, but below works. Thanks a lot!
|
This is still blocking |
We noticed Windows Terminal had a pair of releases fairly close together. One targets Windows 10 and the other targets Windows 11. The Windows 11 version was higher so users on Windows 10 were not able to install. We need to add minimum OS requirements for search to show the latest version available for an OS rather than just the "latest version". Is anyone encountering this error on Windows 10? I noticed this between 1.12 and 1.13. |
@denelon I tried to install on Windows 11 (22621.1265), with Winget version v1.4.10173, but result in the same error. The command that I used was |
I was getting 0x80070002 at the CLI. However, in the event log Microsoft\Windows\AppXDeployment-Server, I saw failures with code 0x80073CF1 ERROR_INSTALL_PACKAGE_NOT_FOUND - "You may get this error while removing a package that isn't installed for the current user" (look up error codes at Troubleshooting packaging, deployment, and query of Windows apps) I originally installed Terminal from the MS Store. Get-AppxLog showed that install and uninstall operations were trying to delete
I could not see the
After that, Deleting folders from |
Reviving this to say that I had the error, and managed to fix it. Since it was a corporate computer, I couldn't go through the Microsoft Store using I first tried listing my packages using The actual way I seemed to have fixed it was using |
In my case, even after uninstalling WindowsTerminal from all real PC users, it seemed WindowsTerminal was still installed (or staged to be installed?) under some system-user (judging from SID and the profile path in regedit for that SID):
This user SID S-1-5-18 did not show up in output of : The winget install error: Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.16.10261.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
████████████████████████████▌ 95%
Installer failed with exit code: 0x80070002 : The system cannot find the file specified. Inspired by previous comment, this fixed the winget install error, in admin shell:
Then, after that, in a normal user shell: |
Same issue on multiple Windows 10 PCs when installing or upgrading Terminal. Gets stuck when installing the UI.Xaml.2.8 dep at 95%... every time. Installer failed with exit code: 0x80070002 : The system cannot find the file specified. Doesn't occur in Sandbox. Very frustrating EDIT: the version of UI.Xaml.2.8 that is already installed is as follows: The Terminal install doesn't seem to be able to install over this or see it as an already fulfilled dependency. |
I'm having the same issue and reported it here: microsoft/winget-pkgs#111840 (comment) |
having this issue now for windows terminal 1.18.3181.0 |
I'm having this issue on multiple PCs (Win 10 + Win 11). |
This Works for me on Windows 10 as a normal user without elevated terminal access. winget install "windows terminal" --source "msstore" --accept-source-agreements --accept-package-agreements |
Will probably be followed up here: microsoft/winget-pkgs#128252 |
this didnt twerk for me here is a shell output of it not twerking: PS C:\Windows\system32> winget uninstall "windows terminal"
Found Windows Terminal [Microsoft.WindowsTerminal]
Starting package uninstall...
██████████████████████████████ 100%
Successfully uninstalled
PS C:\Windows\system32> winget upgrade --all
No installed package found matching input criteria.
PS C:\Windows\system32> winget update
No installed package found matching input criteria.
PS C:\Windows\system32> winget install "windows terminal" --source "msstore" --accept-source-agreements --accept-package-agreements
Found Windows Terminal [9N0DX20HK701] Version Unknown
This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user.
Agreements for Windows Terminal [9N0DX20HK701] Version Unknown
Version: Unknown
Publisher: Microsoft Corporation
Publisher Url: https://github.com/microsoft/terminal
Publisher Support Url: https://github.com/microsoft/terminal/issues/new
Description:
The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.
This is an open source project and we welcome community participation. To participate please visit https://github.com/microsoft/terminal
License: ms-windows-store://pdp/?ProductId=9N0DX20HK701
Privacy Url: go.microsoft.com/fwlink/?LinkID=521839
Copyright: Copyright (c) Microsoft Corporation
Agreements:
Category: Developer tools
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license
Starting package install...
██████████████████████████████ 100%
Successfully installed
PS C:\Windows\system32> winget upgrade --all
Name Id Version Available Source
------------------------------------------------------------
Windows Terminal 9N0DX20HK701 1.18.2822.0 1.18.3181.0 winget
1 upgrades available.
Installing dependencies:
This package requires the following dependencies:
- Packages
Microsoft.UI.Xaml.2.8 [>= 8.2306.22001.0]
(1/1) Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.18.3181.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Installing dependencies:
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
████████████████████████████▌ 95%
Installer failed with exit code: 0x80070002 : The system cannot find the file specified. |
try winget update --id Microsoft.WindowsTerminal --skip-dependencies |
It seems you are running the shell as administrative. Try it in the user shell without the administrative right. |
The reason why this error persists and is for some not applicable is because there is no way to install an older version of a package. I have package version 2.8.6 (8.2310.30001) installed of Microsoft.UI.Xaml. And I do not have package version 2.8.5 (8.2306.22001) installed. Core symptom Add-AppXPackage should have the switch -ForceUpdateFromAnyVersion, but that does not do what it should do according to the description. To fix this, the appxpackage management should get the option to forcefully remove any package. Not looking at any dependencies. Any one |
Brief description of your issue
Trying to upgrade WindowsTerminal fails:
Steps to reproduce
winget upgrade Microsoft.WindowsTerminal
Expected behavior
winget should be able to upgrade WindowsTerminal
Actual behavior
winget fails to upgrade WindowsTerminal
Environment
The text was updated successfully, but these errors were encountered: