Save-Module / Install-Module fails for SimplySql via PSResourceGet — version mismatch (2.2.0 vs 2.2.0.106)

Save-Module / Install-Module fails for SimplySql via PSResourceGet — version mismatch (2.2.0 vs 2.2.0.106)

avatar

Version: PSU 2026.2.0.0 on Linux (Ubuntu 20.04), .NET 10, PowerShell 7.6 host
Repro:

  1. Fresh 2026.2 install, no .universal/Modules yet
  2. Admin Console → Platform → Modules → Install SimplySql (version left as default / 2.2.0) from PSGallery

Expected: Module saved into Repository/Modules/SimplySql/<ver>/.
Actual: Job 8909 fails, error logged at 2026-06-06 12:48:03.855 in systemLog20260606.txt:

[ERR][Universal.Server.Services.ModuleService] Error saving module SimplySql 2.2.0System.InvalidOperationException: Failed to save module. Package(s) 'SimplySql' could not be installed from repository 'PSGallery'. ---> Microsoft.PowerShell.PSResourceGet.UtilClasses.ResourceNotFoundException: Package(s) 'SimplySql' could not be installed from repository 'PSGallery'.   at Universal.Server.Services.ModuleService.ThrowIfPowerShellHadErrors(PowerShell ps, String operation)        in src\Universal.Server\Services\ModuleService.cs:line 853   at Universal.Server.Services.ModuleService.SaveModuleToRepositoryAsync(...)        in src\Universal.Server\Services\ModuleService.cs:line 809   at Universal.Server.Services.ModuleService.SaveModule(...)        in src\Universal.Server\Services\ModuleService.cs:line 230[WRN][Hangfire.AutomaticRetryAttribute] Failed to process the job '8909'; retry attempt count exceeded 0.

Likely root cause: SimplySql's only PSGallery version is 2.2.0.106 (4-part); PSU passed 2.2.0 (3-part) to Save-PSResource/Install-PSResource, which treats it as an exact match and returns ResourceNotFoundException. NuGet-style version normalization (2.2.0 ≡ 2.2.0.0) isn't being applied to the user-supplied version before the lookup.
Workaround: type the full 4-part version (2.2.0.106) in the UI; or pre-stage the module on disk under Repository/Modules/SimplySql/2.2.0.106/.
Related code paths: ModuleService.SaveModule → SaveModuleToRepositoryAsync → ThrowIfPowerShellHadErrors.

All Comments (1)

avatar

@alexrgreenwood Thanks for the report. I haven't tried a 4-part version in PSU before so that's a good deduction.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

Closed