microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.97k stars 1.43k forks source link

0x80070490 Winget source it's not working #4794

Open Ramshu opened 1 week ago

Ramshu commented 1 week ago

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>
github-actions[bot] commented 1 week ago

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.

minh6869 commented 1 week ago

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

denelon commented 1 week ago

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

denelon commented 1 week ago

Does winget source update -n winget also fail?

Ramshu commented 1 week ago

Does also fail?winget source update -n winget

Yes, it also fails. image

denelon commented 1 week ago

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

Ramshu commented 1 week ago

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

surgatengit commented 1 week ago

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 commented 6 days ago

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 commented 5 days ago

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 commented 5 days ago

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 commented 3 days ago

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 commented 6 hours ago

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 commented 4 hours ago

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.