Skip to content

A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version #2154

Closed

Description

Brief description of your issue

I am trying to update the Powershell to the latest 7.2.3 version, I (supposedly) have the 7.2.2 version. I do it via winget

winget upgrade Microsoft.PowerShell

winget show Microsoft.PowerShell shows 7.2.3

image
is my PS installation corrupted or winget?

Steps to reproduce

winget upgrade Microsoft.PowerShell

Expected behavior

PS > successfully installed

Actual behavior

PS > A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.

Environment

Windows: Windows.Desktop v10.0.19044.1645
Package: Microsoft.DesktopAppInstaller v1.17.10271.0
PS C:\Users\user1> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Logs after running the command:

2022-05-12 10:52:39.383 [CORE] WinGet, version [1.2.10271], activity [{DDD029AE-ED7F-4F8E-BD70-6F821DBBDB33}]
2022-05-12 10:52:39.384 [CORE] OS: Windows.Desktop v10.0.19044.1645
2022-05-12 10:52:39.384 [CORE] Command line Args: "C:\Users\pasta\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade Microsoft.PowerShell
2022-05-12 10:52:39.384 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10271.0
2022-05-12 10:52:39.384 [CORE] IsCOMCall:0; Caller: winget-cli
2022-05-12 10:52:39.404 [CLI ] WinGet invoked with arguments: 'upgrade' 'Microsoft.PowerShell'
2022-05-12 10:52:39.405 [CLI ] Found subcommand: upgrade
2022-05-12 10:52:39.405 [CLI ] Leaf command to execute: root:upgrade
2022-05-12 10:52:39.409 [CLI ] Executing command: upgrade
2022-05-12 10:52:39.410 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-05-12 10:52:39.410 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-05-12 10:52:39.410 [REPO] Adding to source references msstore
2022-05-12 10:52:39.410 [REPO] Adding to source references winget
2022-05-12 10:52:39.411 [REPO] Source past auto update time [5 mins]; it has been at least 253067 mins
2022-05-12 10:52:39.412 [REPO] Source past auto update time [5 mins]; it has been at least 253067 mins
2022-05-12 10:52:40.134 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-05-12 10:52:40.134 [CORE] Found matching extension.
2022-05-12 10:52:40.140 [CORE] Downloading to path: C:\Users\pasta\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2022-05-12 10:52:40.141 [CORE] Started applying motw to C:\Users\pasta\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2022-05-12 10:52:40.144 [CORE] Finished applying motw
2022-05-12 10:52:40.144 [CORE] WinINet downloading from url: https://winget.azureedge.net/cache/source.msix
2022-05-12 10:52:41.061 [CORE] Download completed.
2022-05-12 10:52:41.063 [CORE] Starting AddPackage operation #0: file:///C:/Users/pasta/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1
2022-05-12 10:52:41.073 [CORE] Begin waiting for operation #0
2022-05-12 10:52:41.073 [CORE] Begin blocking for operation #0
2022-05-12 10:52:43.219 [CORE] Successfully completed #0
2022-05-12 10:52:43.237 [REPO] Multiple sources available, creating aggregated source.
2022-05-12 10:52:43.237 [REPO] Adding to aggregated source: msstore
2022-05-12 10:52:43.237 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-05-12 10:52:43.652 [REPO] Response status: 200
2022-05-12 10:52:43.652 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-05-12 10:52:43.740 [REPO] Response status: 200
2022-05-12 10:52:43.741 [REPO] Adding to aggregated source: winget
2022-05-12 10:52:43.753 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-05-12 10:52:43.753 [CORE] Found matching extension.
2022-05-12 10:52:43.776 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2022.512.844.974_neutral__8wekyb3d8bbwe\Public\index.db'
2022-05-12 10:52:43.776 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2022.512.844.974_neutral__8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40]
2022-05-12 10:52:43.777 [REPO] Opened SQLite Index with version [1.3], last write [2022-05-12 10:44:48.000]
2022-05-12 10:52:43.824 [REPO] Creating PredefinedInstalledSource with filter [None]
2022-05-12 10:52:43.824 [REPO] Creating new SQLite Index [4294967295.4294967295] at ':memory:'
2022-05-12 10:52:43.824 [SQL ] Opening SQLite connection: ':memory:' [6, 0]
2022-05-12 10:52:43.874 [REPO] Examining ARP entries for Machine | X64
2022-05-12 10:52:43.891 [REPO] Examining ARP entries for Machine | X86
2022-05-12 10:52:43.906 [REPO] Examining ARP entries for User | X64
2022-05-12 10:52:44.455 [REPO] Creating new SQLite Index [4294967295.4294967295] at 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2022-05-12 10:52:44.455 [SQL ] Opening SQLite connection: 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [6, 0]
2022-05-12 10:52:44.499 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2022-05-12 10:52:44.499 [SQL ] Opening SQLite connection: 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0]
2022-05-12 10:52:44.500 [REPO] Opened SQLite Index with version [1.3], last write [2022-05-12 10:52:44.000]
2022-05-12 10:52:44.551 [REPO] Creating new SQLite Index [4294967295.4294967295] at 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2022-05-12 10:52:44.551 [SQL ] Opening SQLite connection: 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [6, 0]
2022-05-12 10:52:44.595 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2022-05-12 10:52:44.595 [SQL ] Opening SQLite connection: 'C:\Users\pasta\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2022-05-12 10:52:44.596 [REPO] Opened SQLite Index with version [1.3], last write [2022-05-12 10:52:44.000]
2022-05-12 10:52:44.651 [CLI ] Found one app. App id: Microsoft.PowerShell App name: PowerShell
2022-05-12 10:52:44.656 [REPO] Downloading manifest
2022-05-12 10:52:44.656 [CORE] WinINet downloading from url: https://winget.azureedge.net/cache/manifests/m/Microsoft/PowerShell/7.2.3.0/0e0c-Microsoft.PowerShell.yaml
2022-05-12 10:52:45.147 [CORE] Download hash: 217ac6c205edf7a67cac9901afd46488f5e4bfd6a083885a2fc59fb94006c519
2022-05-12 10:52:45.147 [CORE] Download completed.
2022-05-12 10:52:45.148 [CLI ] Starting installer selection.
2022-05-12 10:52:45.148 [CLI ] Installer [X64,wix,Machine,] not applicable: Installed package type is not compatible with wix
2022-05-12 10:52:45.148 [CLI ] Installer [X86,wix,Machine,] not applicable: Installed package type is not compatible with wix
2022-05-12 10:52:45.148 [CLI ] Installer [Arm,msix,Machine,] not applicable: Installed package type is not compatible with msix
2022-05-12 10:52:45.148 [CLI ] Installer [Arm,msix,Machine,] not applicable: Machine is not compatible with Arm
2022-05-12 10:52:45.148 [CLI ] Installer [Arm64,msix,Machine,] not applicable: Installed package type is not compatible with msix
2022-05-12 10:52:45.148 [CLI ] Installer [Arm64,msix,Machine,] not applicable: Machine is not compatible with Arm64
2022-05-12 10:52:45.148 [CLI ] Installer [X86,msix,Machine,] not applicable: Installed package type is not compatible with msix
2022-05-12 10:52:45.149 [CLI ] Installer [X64,msix,Machine,] not applicable: Installed package type is not compatible with msix
2022-05-12 10:52:45.169 [CLI ] Terminating context: 0x8a15002b at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:71

Activity

  1. ghost added
    Needs-TriageIssue needs to be triaged
    on May 12, 2022
  2. locked and limited conversation to collaborators on May 12, 2022
  3. converted this issue into a discussion #2155 on May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions