winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

`winget` fails on Windows for ARM

Open aslilac opened this issue 3 years ago • 27 comments
trafficstars

Brief description of your issue

When running any winget command I get...

Could not open the resource file: 0x80073b1f : ResourceMap Not Found.

Steps to reproduce

winget search git, for example (or winget search $anything)

Expected behavior

To be able to run winget to install things.

Actual behavior

Fails to run any command, with all updates from Windows Update and the Store app installed.

Environment

Edition	Windows 11 Home
Version	21H2
Installed on	‎2/‎14/‎2022
OS build	22000.527
Experience	Windows Feature Experience Pack 1000.22000.527.0

Can't run winget --info, it fails with the same error as every other command.

Running in Parallels on an M1 Max if any of that might be relevant.

aslilac avatar Mar 02 '22 19:03 aslilac

Thanks for the details.

denelon avatar Mar 02 '22 19:03 denelon

Does this get resolved for you if you install winget manually from GitHub Releases? I ask because I could replicate the same behavior on my ARM system, but it seemed to be because I tried to run winget when the install from the Microsoft Store wasn't complete (the exe was present but some of the DLLs were not). After waiting a minute and typing winget again, it worked.

I don't think your issue is the same, but I'm wondering if the package didn't install right.

jedieaston avatar Mar 04 '22 13:03 jedieaston

Screen Shot 2022-03-04 at 9 17 04 AM

Installing from Github releases doesn't seem to work 🤔

aslilac avatar Mar 04 '22 16:03 aslilac

@jedieaston, can you test with 1.2 and confirm if the problem of dependencies is resolved? We may need to have a servicing release if it's not.

denelon avatar Mar 04 '22 16:03 denelon

I need to get a Mac with Parallels.

denelon avatar Mar 04 '22 16:03 denelon

@jedieaston, can you test with 1.2 and confirm if the problem of dependencies is resolved? We may need to have a servicing release if it's not.

Package dependencies seem to work for me on 1.2 on ARM64: image

(Were you referring to winget dependencies or dependencies for App Installer?)

jedieaston avatar Mar 04 '22 18:03 jedieaston

I was referring to Windows Package Manager dependencies in App Installer.

denelon avatar Mar 04 '22 18:03 denelon

It seems like they are automatically resolved just like on other platforms (UI Xaml has to be around anyway for Windows 11 UI stuff). I didn't have to manually install anything.

jedieaston avatar Mar 04 '22 18:03 jedieaston

I need to get a Mac with Parallels.

Unfortunately, this won't help. I am sitting right in front of one. And get the same error, trying to run latest version of API Management Resource Kit.

TechPrototyper avatar Aug 17 '22 07:08 TechPrototyper

I am having this problem too (Parameter incorrect in Win11, Parallels on M1 Max)

atwright147 avatar Sep 16 '22 20:09 atwright147

Does the "Microsoft Store" work on Parallels?

I'm wondering if the dependency management isn't working correctly, or correctly detecting the architecture. We added the architecture as a display property for winget --info so we can show when we're running on ARM hardware natively.

denelon avatar Sep 16 '22 20:09 denelon

Windows Store does work and I am still getting errors (even winget --info is erroring).

Screenshot 2022-10-19 at 22 11 36

atwright147 avatar Oct 19 '22 21:10 atwright147

I haven't tested on Parallels. I'll see if I can find someone here to test/validate. I have tested WinGet on Windows natively running on ARM64.

denelon avatar Oct 20 '22 00:10 denelon

Ugh, my Parallels license expired, but I can confirm winget also works installed from the Microsoft Store in a VM (using UTM, which uses the Apple Hypervisor just like Parallels):

image

I'm on Build 25227 (Dev Insider Preview). @atwright147, what build of Windows are you running on (winver)?

jedieaston avatar Oct 20 '22 14:10 jedieaston

Hey, not sure if I am out of date or not but Version 21H2 (OS Build 22000.978)

Screenshot 2022-10-20 at 17 56 35

atwright147 avatar Oct 20 '22 16:10 atwright147

You're not on Insiders, but this should be working fine anyway. Will have to keep digging, unless @denelon finds something first.

Edit: actually, you are a bit out of date, the latest stable release is 22H2. Can you run the Windows 11 Upgrade Assistant and see if you can get up-to-date? https://www.microsoft.com/software-download/windows11

jedieaston avatar Oct 21 '22 12:10 jedieaston

@jedieaston I am happy to do so but Windows 11 Installation Assistant doesn't seem to work on Windows 11 for ARM64

When I run it, I get the following message:

Installation Assistant doesn't work on this type of device

For other ways to install Windows 11 on this ARM64 device, visit Download Windows 11

I guess I could join the Insider Program if that would help?

atwright147 avatar Oct 30 '22 18:10 atwright147

@jedieaston I am happy to do so but Windows 11 Installation Assistant doesn't seem to work on Windows 11 for ARM64

When I run it, I get the following message:

Installation Assistant doesn't work on this type of device For other ways to install Windows 11 on this ARM64 device, visit Download Windows 11

I guess I could join the Insider Program if that would help?

I didn't know that, sorry (I use Windows 11 on ARM64 occasionally, but usually when I need a new version I rebuild my VM).

If you want to you can join Insiders, but you shouldn't have to. Is Windows Update offering you an update to 22H2?

jedieaston avatar Nov 01 '22 13:11 jedieaston

Hey, based on what you said, I have not joined the Insiders Programme.

No, I am not getting offered 22H2.

What would you like me to do?

atwright147 avatar Nov 09 '22 00:11 atwright147

I'm guessing this is an issue with parallels. I don't have this problem on an SPX or other Windows native on ARM device.

denelon avatar Nov 09 '22 00:11 denelon

Could always try manually installing the msu, should be able to still grab it from the Update Catalog

Masamune3210 avatar Nov 09 '22 03:11 Masamune3210

msu?

atwright147 avatar Nov 09 '22 11:11 atwright147

Microsoft Update, its the packaged version of a update designed for either sysadmins that want to manually install a specific update or for people who are offline and need a way to install the updates without having access to the normal way of doing it.

https://www.catalog.update.microsoft.com/Home.aspx

Masamune3210 avatar Nov 09 '22 11:11 Masamune3210

I went to https://www.catalog.update.microsoft.com/Search.aspx?q=22h2 and downloaded the top Win 11 for ARM64 22H2 file.

I only have the option to extract files from the CAB file and once extracted, the cannot install (setup.exe) due to not being able to determine the language. Super frustrating. ARM64 in Parallels seems a bit borked.

atwright147 avatar Nov 10 '22 13:11 atwright147

Sounds like it unfortunately

Masamune3210 avatar Nov 10 '22 14:11 Masamune3210

Right, so on the basis that something must have been fully broken, I upgraded to Parallels v18.1.0 (53311).

I deleted the previous Win11 VM, then created a new Win11 VM through Parallels' automatic system and it all works flawlessly now :)

atwright147 avatar Nov 11 '22 23:11 atwright147

Yeah, it sounds like that previous install was just completely hosed in some way that stopped winget from functioning correctly. Glad you got it working

Masamune3210 avatar Nov 12 '22 00:11 Masamune3210

@aslilac are you still having trouble running on ARM?

denelon avatar Nov 14 '22 18:11 denelon

@aslilac this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

ghost avatar Nov 21 '22 19:11 ghost

it seems to be working now!

aslilac avatar Nov 21 '22 19:11 aslilac