Skip to content

Can't install any PSGallery modules #46

@benmishkanian

Description

@benmishkanian

Steps to reproduce

docker run -it --rm microsoft/powershell pwsh -Command Install-Module InvokeBuild -Force -Verbose

Expected behavior

Module installs successfully

Actual behavior

VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/6/Modules/PackageManagement/coreclr/netcoreapp2.0/Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/6/Modules/PackageManagement/coreclr/netcoreapp2.0/Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/6/Modules/PackageManagement/coreclr/netcoreapp2.0/Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: /opt/microsoft/powershell/6/Modules/PackageManagement/coreclr/netcoreapp2.0/Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='InvokeBuild'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'InvokeBuild'.
VERBOSE: Performing the operation "Install-Module" on target "Version '5.4.1' of module 'InvokeBuild'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in '/usr/local/share/powershell/Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'InvokeBuild' with version '5.4.1' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='InvokeBuild'' for ''.
VERBOSE: InstallPackage' - name='InvokeBuild', version='5.4.1',destination='/tmp/1647089731'
VERBOSE: DownloadPackage' - name='InvokeBuild', version='5.4.1',destination='/tmp/1647089731/InvokeBuild.5.4.1/InvokeBuild.5.4.1.nupkg', uri='https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1'.
VERBOSE: The SSL connection could not be established, see inner exception.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1' for '2' more times
VERBOSE: The SSL connection could not be established, see inner exception.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1' for '1' more times
VERBOSE: The SSL connection could not be established, see inner exception.
VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1' for '0' more times
VERBOSE: Downloading package 'InvokeBuild' failed, please make sure 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1' is accessable.
WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/InvokeBuild/5.4.1' is not valid.
PackageManagement\Install-Package : Package 'InvokeBuild' failed to download.
At /opt/microsoft/powershell/6/Modules/PowerShellGet/PSModule.psm1:9491 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ResourceUnavailable: (/tmp/1647089731...ild.5.4.1.nupkg:String) [Install-Package], Exception
+ FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Environment data

> docker info
Containers: 54
 Running: 0
 Paused: 0
 Stopped: 54
Images: 72
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.93-linuxkit-aufs
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155da7f50f
ID: S5MF:PD6Y:BMLE:UW34:PUCA:X7EO:N37P:GFSC:TKJ7:ZFJM:3ZXE:IWO2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 22
 Goroutines: 47
 System Time: 2018-09-24T23:16:23.6033013Z
 EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.15063.1266
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.1266
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions