-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Package Issue]: Spotify.Spotify installation fails with exit code 23 #83517
Comments
Spotify does not install elevated. winget-pkgs/manifests/s/Spotify/Spotify/1.1.95.893.g6cf4d40c/Spotify.Spotify.installer.yaml Line 15 in ce61720
|
Thanks! I ran the command in a non-admin shell and it worked!
Would it be possible to change the error message to reflect that? |
If you update WinGet to the latest release (1.3) you'll get a error message that reflects that. |
Do you know a way how to do that? I looked in the project README and googled it but didn't find anything. |
Microsoft Store -> Update App Installer. https://www.microsoft.com/p/app-installer/9nblggh4nns1 It is the same as the Installation in the README. |
Thanks! I had installed the App Installer with:
which I found from this issue, but winget did not get updated until I opened the Store App on the App Installer page which in turn started to update itself automatically. I now have |
Close with reason: Newer version of winget displays better error message, user issue resolved; |
Did this change in the recent version? I inly get the error code 23 and not an description that it fails beause elevation issues. Of course, I can update as intended in an non-elevated shell. Output:
|
Weird, i cannot replicate your issue..
|
I haven't tested it, but could it have something to do with |
That could be it. I already updated the software non-elevated, so I have to wait for the next upgrade to see if this would be it. |
It seems that way. Running
However, running
|
I forgot about this and have tried to upgrade Spotify in an elevated shell. > winget upgrade -h --all --verbose-logs
Name Id Version Available Source
--------------------------------------------------------------------------------------------------------------
Spotify Spotify.Spotify 1.2.3.1115.gd61a8f5c 1.2.4.912.g949d5fd0 winget
1 upgrade available.
(1/1) Found Spotify [Spotify.Spotify] Version 1.2.4.912.g949d5fd0
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...
Installer failed with exit code: 23
> winget --info
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.1194
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale |
Spotify had the "prohibitsElevation" key which gave the user a message that it didn't work elevated. Unfortunately, we have had to do a bunch of gymnastics in our validation environment to switch to a "user" context for the install. Work is in progress. Additionally, I've added a feature to add it to the expected return codes enumeration so that error can also be mapped when the key isn't present. The community removed the key to enable it to pass validation. Add your 👍 to raise priority. |
Hello! So I was also having the issues for installing via winget. Cheers |
@ImJoakim Yes that's the exact problem, as you verified later. @denelon if it can be of help for the "switch to user context", the gerardog/gsudo tool can do it with the gsudo --integrity Medium -- any command /and /arguments
# for example
gsudo --integrity Medium -- winget upgrade spotify.spotify this will "de-elevate" any given command (i haven't actually tried it with spotify because i have already updated spotify at this point). |
Morning. I had the same issue but the reason was that Spotify was running in the background. After exiting it and running
|
Same thing for me, this morning. C:\Windows\System32 (errorlevel -1978335210) # winget install spotify.spotify
The installer cannot be run from an administrator context.
C:\Windows\System32 (errorlevel -1978335146) # gsudo --direct --integrity medium -- winget install spotify.spotify
Found Spotify [Spotify.Spotify] Version 1.2.11.914.gd3175972
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://upgrade.scdn.co/upgrade/client/win32-x86/spotify_installer-1.2.11.914.gd3175972-2210.exe
██████████████████████████████ 84.3 MB / 84.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed |
Still happening on Winget v1.5.2201, the current release as of today. Non elevated it works fine. |
As per @denelon previous comment, this problem (the uninformative error message Rather than commenting this issue I suggest to add your 👍 to the issue above and subscribe to raise its priority. At the moment it has only two 👍. |
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
When I run
winget install -e --id Spotify.Spotify
the installation fails with exit code 23.Steps to reproduce
Run
winget install -e --id Spotify.Spotify
in an elevated PowerShell terminal.Actual behavior
The installation fails with exit code 23.
Expected behavior
The application gets installed.
Environment
Screenshots and Logs
The text was updated successfully, but these errors were encountered: