Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Unable to install or update any package #668

Open
@237dmitry

Description

@237dmitry

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…}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions