Skip to content
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

0x80070490 Winget source it's not working #4794

Open
Ramshu opened this issue Sep 5, 2024 · 23 comments
Open

0x80070490 Winget source it's not working #4794

Ramshu opened this issue Sep 5, 2024 · 23 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Ramshu
Copy link

Ramshu commented Sep 5, 2024

Brief description of your issue

Error 0x80070490 I can't use winget because the source is not working.
Captura de pantalla 2024-09-05 183234
Captura de pantalla 2024-09-05 183245

Steps to reproduce

Using any comand to get info at source

Expected behavior

Normal winget functions

Actual behavior

Winget doesnt work becaus the source is not working.
Captura de pantalla 2024-09-05 183234
Captura de pantalla 2024-09-05 183245

Environment

PowerShell 7.4.5
PS C:\Users\Ramshu> winget --info
Administrador de paquetes de Windows v1.8.1911
Copyright (c) Microsoft Corporation. Todos los derechos reservados.

Windows: Windows.Desktop v10.0.19045.4842
Arquitectura del sistema: X64
Paquete: Microsoft.DesktopAppInstaller v1.23.1911.0

Directorios de WinGet
-----------------------------------------------------------------------------------------------------------------------
Registros                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalS…
Configuración de usuario                    %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalS…
Directorio de vínculos portátiles (usuario) %LOCALAPPDATA%\Microsoft\WinGet\Links
Directorio de vínculos portátiles (equipo)  C:\Program Files\WinGet\Links
Raíz de paquete portátil (usuario)          %LOCALAPPDATA%\Microsoft\WinGet\Packages
Raíz de paquete portátil                    C:\Program Files\WinGet\Packages
Raíz de paquete portátil (x86)              C:\Program Files (x86)\WinGet\Packages
Descargas del instalador                    F:\Ramshu\Downloads

Vínculos
-----------------------------------------------------------------------------------
Declaración de privacidad   https://aka.ms/winget-privacy
Contrato de licencia        https://aka.ms/winget-license
Avisos de terceros          https://aka.ms/winget-3rdPartyNotice
Página principal            https://aka.ms/winget
Términos de Microsoft Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

Configuración de administrador            Estado
-------------------------------------------------------
LocalManifestFiles                        Deshabilitado
BypassCertificatePinningForMicrosoftStore Deshabilitado
InstallerHashOverride                     Deshabilitado
LocalArchiveMalwareScanOverride           Deshabilitado
ProxyCommandLineOptions                   Deshabilitado
DefaultProxy                              Deshabilitado
PS C:\Users\Ramshu>
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Ramshu Ramshu changed the title 0x80070490 Winget source is oit 0x80070490 Winget source it's not working Sep 5, 2024
@minh6869
Copy link

minh6869 commented Sep 5, 2024

same issue. Maybe in the next few hours the server will be back up

@denelon
Copy link
Contributor

denelon commented Sep 5, 2024

I don't believe the service was down. The URL in the source export in the screenshot above isn't the path to the Pre-Indexed package.

The correct path is:
https://cdn.winget.microsoft.com/cache/source2.msix

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Sep 5, 2024
@denelon denelon added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Sep 5, 2024
@denelon
Copy link
Contributor

denelon commented Sep 5, 2024

Does winget source update -n winget also fail?

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Sep 5, 2024
@Ramshu
Copy link
Author

Ramshu commented Sep 6, 2024

Does also fail?winget source update -n winget

Yes, it also fails.
image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Sep 6, 2024
@denelon
Copy link
Contributor

denelon commented Sep 6, 2024

Can you run the command and share verbose logs?
winget source update -n winget --verbose-logs --logs

@denelon denelon added Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Attention Issue needs attention from Microsoft labels Sep 6, 2024
@Ramshu
Copy link
Author

Ramshu commented Sep 8, 2024

Can you run the command and share verbose logs? winget source update -n winget --verbose-logs --logs

Sure, forgive the delay in answering you.
WinGet-2024-09-08-21-12-24.011.log
WinGetCOM-2024-09-08-11-54-55.658.log
WinGetCOM-2024-09-08-01-05-29.895.log

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Sep 8, 2024
@surgatengit
Copy link

Winget has never worked properly, especially on clean installations, even though it comes pre-installed. The installation is often broken, preventing it from running or updating. The best solution is to install it directly.

Start-BitsTransfer -Source "https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Destination "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"

@Ramshu
Copy link
Author

Ramshu commented Sep 10, 2024

Winget has never worked properly, especially on clean installations, even though it comes pre-installed. The installation is often broken, preventing it from running or updating. The best solution is to install it directly.

Start-BitsTransfer -Source "https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Destination "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"

I'm also having problems with appx...
When the problems with winget started, I tried uninstalling it with appx, getting the same error codes as now. I have checked and the services (AppXSVC) and (ClipSVC) are up and running, but for some reason that I don't know appx doesn't work.

image

@surgatengit
Copy link

Ok, I suggest first repairing the Microsoft Store by running wsreset -i. After a while, wait for a notification that confirms the Store has been installed.

@PatrickTerlisten
Copy link

Same here.

Windows-Paket-Manager v1.8.1911
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22631.4112
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.23.1911.0

WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------------------------
Protokolle                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Benutzereinstellungen                        %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
ProxyCommandLineOptions                   Deaktiviert
DefaultProxy                              Deaktiviert

Here's a log from a "winget source update --verbose-logs".

WinGet-2024-09-11-10-42-10.128.log

@Ramshu
Copy link
Author

Ramshu commented Sep 12, 2024

Ok, I suggest first repairing the Microsoft Store by running wsreset -i. After a while, wait for a notification that confirms the Store has been installed.

Done, but the problems persist.

@PatrickTerlisten
Copy link

I fixed it by granting my user admin perssions, followed by a

winget source reset --force

and

winget source update

Then I removed the admin permissions again and winget still works.

@Ramshu
Copy link
Author

Ramshu commented Sep 16, 2024

I fixed it by granting my user admin perssions, followed by a

winget source reset --force

and

winget source update

Then I removed the admin permissions again and winget still works.

That's literally what I do in the first comment, obviously it didn't work, so they're not the same problem. If you can give more details of the problem you were having, in case it helps to find a solution that would be great.

@PatrickTerlisten
Copy link

Did you granted your normal office account the admin priviledges? Because as Administrator, winget never showed an issue, only with my normal, unpriviledge office account.

@Ramshu
Copy link
Author

Ramshu commented Sep 24, 2024

Did you granted your normal office account the admin priviledges? Because as Administrator, winget never showed an issue, only with my normal, unpriviledge office account.

Yes, my account has the privileges.
image

@denelon
Copy link
Contributor

denelon commented Sep 26, 2024

I don't know if it would help or not, but there is a "Repair-WinGetPackageManager" cmdlet in the Microsoft.WinGet.Client PowerShell module. It's designed to "fix" issues with WinGet from an install/bootstrapping perspective.

You could try running Repair-WinGetPackageManager -Latest -Force to see if that addresses the problem.

If that works, it's clearly a work around and not the solution to the problem, but I'd love to help unblock the issue until we can get a solid set of instructions to reproduce the situation so we can figure out how to fix the actual root cause.

@denelon denelon removed the Needs-Attention Issue needs attention from Microsoft label Sep 26, 2024
@Ramshu
Copy link
Author

Ramshu commented Oct 1, 2024

I don't know if it would help or not, but there is a "Repair-WinGetPackageManager" cmdlet in the Microsoft.WinGet.Client PowerShell module. It's designed to "fix" issues with WinGet from an install/bootstrapping perspective.

You could try running Repair-WinGetPackageManager -Latest -Force to see if that addresses the problem.

If that works, it's clearly a work around and not the solution to the problem, but I'd love to help unblock the issue until we can get a solid set of instructions to reproduce the situation so we can figure out how to fix the actual root cause.

Doesn't works for me...

Edit: Screenshot fix
image

@ross-lh
Copy link

ross-lh commented Oct 12, 2024

Winget has never worked properly, especially on clean installations, even though it comes pre-installed. The installation is often broken, preventing it from running or updating. The best solution is to install it directly.

Start-BitsTransfer -Source "https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Destination "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"

this completely solved it for me. appreciate so much.

@denelon
Copy link
Contributor

denelon commented Oct 25, 2024

@Ramshu it looks like you may not have "installed" the module before trying to run the cmdlet.

Try running Install-Module Microsoft.WinGet.Client before trying to run Repair-WinGetPackageManager -Force -Latest.

@Ramshu
Copy link
Author

Ramshu commented Oct 26, 2024

@Ramshu it looks like you may not have "installed" the module before trying to run the cmdlet.

Try running Install-Module Microsoft.WinGet.Client before trying to run Repair-WinGetPackageManager -Force -Latest.

This did something, but it didn't fix the problem.
Image

Winget has never worked properly, especially on clean installations, even though it comes pre-installed. The installation is often broken, preventing it from running or updating. The best solution is to install it directly.

Start-BitsTransfer -Source "https://github.com/microsoft/winget-cli/releases/download/v1.8.1911/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Destination "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller.msixbundle"

I managed to get the commands to work using Windows PowerShell instead of the latest version of Powershell, but unfortunately it didn't solve the problem.

I have also tried to uninstall winget completely and installing the latest version, but it did not solve anything either.

Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage
Add-AppxPackage -Path "$env:USERPROFILE\Downloads\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"

@Ramshu
Copy link
Author

Ramshu commented Oct 26, 2024

@denelon @surgatengit @PatrickTerlisten
I have been able to solve it in the most unusual way.

I remembered that the problems with winget started after deleting a Guest Account... So I tried to create a new administrator account, I tried to use WinGet List on the new account, it asked me to accept the terms and it worked.

I have returned to my usual user account and winget worked magically, it is curious that it also asked me to accept the terms as if it were a new installation.

I really don't understand what happened or why, I just know that it has worked.

@Ali333n
Copy link

Ali333n commented Oct 28, 2024

I don't believe the service was down. The URL in the source export in the screenshot above isn't the path to the Pre-Indexed package.

The correct path is: https://cdn.winget.microsoft.com/cache/source2.msix

This helped me, had this winget error since 3-4 Months and couldn't solve it. Thanks so much! @denelon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

7 participants