PowerShell / PowerShellGetv2

PowerShellGet is the Package Manager for PowerShell
https://www.PowerShellGallery.com
MIT License
431 stars 138 forks source link

Unable to install or update any package #668

Open 237dmitry opened 2 years ago

237dmitry commented 2 years ago

This problem in Windows and in Linux. The error and the warning are the same. Install-Module Update-Module Save-Module Could this problem relates to internet provider?

Steps to reproduce


# ConsoleGuiTools is an example. Any other package reproduces the same warning and error

Install-Module ConsoleGuiTools -Scope CurrentUser -Force # And without Force switch

# # # Freezed Progress bar for 4 minutes

WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.PowerShell.ConsoleGuiTools/0.6.2' is not valid.
Install-Package: Package 'Microsoft.PowerShell.ConsoleGuiTools' failed to download.

Expected behavior

installed module

Actual behavior

Not valid uri

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Linux 5.16.3-arch1-1 #1 SMP PREEMPT Thu, 27 Jan 2022 14:18:25 +0000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
> Get-Module -ListAvailable PowerShellGet,PackageManagement

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
StevenBucher98 commented 2 years ago

Thanks @237dmitry! Can you run Get-PSRespository and Get-PackageSource and share the output with us?