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

[Package Issue]: Microsoft.PowerShell version 7.4.6.0 #216014

Open
2 tasks done
DuckDuckStudio opened this issue Jan 23, 2025 · 0 comments
Open
2 tasks done

[Package Issue]: Microsoft.PowerShell version 7.4.6.0 #216014

DuckDuckStudio opened this issue Jan 23, 2025 · 0 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.

Comments

@DuckDuckStudio
Copy link
Contributor

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Multiple installed packages found.

Brief description of your issue

When I run winget list, it shows two entries of the same package with the same version:

[Powered by 虚空终端] PS D:\...> winget list -s winget PowerShell
名称                   ID                        版本
------------------------------------------------------------
PowerShell 7-x64       Microsoft.PowerShell      7.4.6.0
PowerShell 7.4.6.0-x64 Microsoft.PowerShell      7.4.6.0
Windows 终端           Microsoft.WindowsTerminal 1.21.3231.0

However, my device should only have one PowerShell5.1 and one PowerShell7.

Steps to reproduce

Try:

  1. Installing Powershell 5.1 from any way (WARN: There is no Powershell 5.1 in winget.)
  2. Installing Powershell 7 from any way (Side-By-Side)
  3. Using winget list PowerShell -s winget

I can't test this because I can't install PowerShell 5.1 in my VM.

Actual behavior

[Powered by 虚空终端] PS D:\...> winget list -s winget PowerShell
名称                   ID                        版本
------------------------------------------------------------
PowerShell 7-x64       Microsoft.PowerShell      7.4.6.0
PowerShell 7.4.6.0-x64 Microsoft.PowerShell      7.4.6.0
Windows 终端           Microsoft.WindowsTerminal 1.21.3231.0

Expected behavior

[Powered by 虚空终端] PS D:\...> winget list -s winget PowerShell
名称                   ID                        版本
------------------------------------------------------------
PowerShell 7-x64       Microsoft.PowerShell      7.4.6.0
PowerShell 5.1-x64 Microsoft.PowerShell      5.1.22621.4391
Windows 终端           Microsoft.WindowsTerminal 1.21.3231.0

Environment

Windows 程序包管理器 v1.9.25200
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.22631.4751
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.24.25200.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
可移植包根目录(用户)   %LOCALAPPDATA%\Microsoft\WinGet\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           已禁用
ProxyCommandLineOptions                   已禁用
DefaultProxy                              已禁用

Screenshots and Logs

No response

@DuckDuckStudio DuckDuckStudio added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jan 23, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 23, 2025
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. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
Development

No branches or pull requests

1 participant