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.93k stars 1.42k forks source link

"Failed in attempting to update the source: winget" when using ssh #4272

Open AndreasBrostrom opened 5 months ago

AndreasBrostrom commented 5 months ago

Brief description of your issue

Using ssh connection return "Failed in attempting to update the source: winget" when installing or upgrading.

For this instance i use arch-linux > windows

Administrator in 🌐 B-Station in ~ 
PS > winget install usbipd-win
Failed in attempting to update the source: winget
Found usbipd-win [dorssel.usbipd-win] Version 4.1.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.
Downloading https://github.com/dorssel/usbipd-win/releases/download/v4.1.0/usbipd-win_4.1.0.msi
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  4.57 MB / 4.57 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS > winget upgrade --include-unknown --silent --all
Failed in attempting to update the source: winget
Name       Id                   Version Available Source
--------------------------------------------------------
OBS Studio OBSProject.OBSStudio 30.0.2  30.1.0    winget
1 upgrades available.

Installing dependencies:
This package requires the following dependencies:
  - Packages
      Microsoft.VCRedist.2015+.x64
(1/1) Found OBS Studio [OBSProject.OBSStudio] Version 30.1.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.
Downloading https://github.com/obsproject/obs-studio/releases/download/30.1.0/OBS-Studio-30.1-Full-Installer-x64.exe
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   126 MB /  126 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Running winget source reset --force does not resolve the ssh client issue.

The apps are seaminly installed propperly and the message do not occure on the device it sefl and i have not yet noticed any ill effects yet when updateing and installing while seeing this message.

Steps to reproduce

  1. Use ssh to access a system
  2. Run winget install app or winget upgrade

Expected behavior

Not to see the message

Actual behavior

See the message

Environment

S > winget --info   
Windows Package Manager v1.7.10661
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3296
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10661.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

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

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Enabled
LocalArchiveMalwareScanOverride           Disabled
github-actions[bot] commented 5 months 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.

stephengillie commented 5 months ago

This is WinGet over SSH?

AndreasBrostrom commented 5 months ago

This is WinGet over SSH?

Yes, no other issues were only focusing on ssh only related issue to this issue.

Taky0nDon commented 3 months ago

I am having the same issue, even with a fresh install of Windows 10. SSHing onto my windows machine from Debian 12.

edit:

I manually downloaded and ran the source.msix file as suggested in this issue, and it appears to be resolved.