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

Unable to install or update any package #668

Open
237dmitry opened this issue Jan 29, 2022 · 1 comment
Open

Unable to install or update any package #668

237dmitry opened this issue Jan 29, 2022 · 1 comment

Comments

@237dmitry
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants