microsoft / microsoft/winget-cli

Cannot add new source in winget

Open
#3,927 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Source Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

I try to use a mirror winget source.
So I first delete the source winget.

winget source remove winget

It runs well. Then I run command

winget source add winget https://mirrors.ustc.edu.cn/winget-source

It download all of 4.62MB datas, then when the add process bar shows, it says

执行此命令时发生意外错误:
Operation failed: 从  (Microsoft.Winget.Source_8wekyb3d8bbwe.msix)  使用程序包 Microsoft.Winget.Source_2023.1126.430.462_neutral__8wekyb3d8bbwe 中的目标卷 C: 执行的部署 Add 操作失败,错误为 0x8007065E。有关诊断应用部署问题的帮助,请参阅 http://go.microsoft.com/fwlink/?LinkId=235160。
0x8007065e

The error code is not contains in neither the link provide or the winget help page.

According to the error message, it may be an MSIX installation error. So I installed a few more MSIX packages,but get no problems.

Then I update my winget to preview version, the bug stills.

Steps to reproduce

Run these commands:

winget source remove winget
winget source add winget https://mirrors.ustc.edu.cn/winget-source
Expected behavior

The new source is added.

Actual behavior

The new source is not added.

Environment

I update it to preview to check if problem still

Windows 程序包管理器(预览) v1.7.3172-preview
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.19045.3516
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.22.3172.0

Winget 目录
-------------------------------------------------------------------------------------------------------------------
日志                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
用户设置               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
可移植链接目录(用户)   %LOCALAPPDATA%\Microsoft\WinGet\Links
可移植链接目录(计算机) C:\Program Files\WinGet\Links
可移植包根目录(用户)   D:/Program Files/Packages
可移植包根目录         C:\Program Files\WinGet\Packages
可移植包根目录 (x86)   C:\Program Files (x86)\WinGet\Packages
安装程序下载           %USERPROFILE%\Downloads

链接
----------------------------------------------------------------------------
隐私声明             https://aka.ms/winget-privacy
许可协议             https://aka.ms/winget-license
第三方声明           https://aka.ms/winget-3rdPartyNotice
主页                 https://aka.ms/winget
Windows 应用商店条款 https://www.microsoft.com/en-us/storedocs/terms-of-sale

管理员设置                                状态
------------------------------------------------
LocalManifestFiles                        已禁用
BypassCertificatePinningForMicrosoftStore 已禁用
InstallerHashOverride                     已启用
LocalArchiveMalwareScanOverride           已禁用

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with winget source remove winget followed by winget source add winget https://mirrors.ustc.edu.cn/winget-source, using the reported Windows and WinGet preview versions. Trace the source-add operation through the 0x8007065E deployment failure. Done means the mirror source is added successfully without the MSIX deployment error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.