Open wre136 opened 3 years ago
@wre136 thanks for reaching out,
Can you run:
Get-PSRepository -Debug -Verbose
Get-PackageSource -Debug -Verbose
Register-PSRepository -Default -Debug -Verbose
and can you provide the full logs for all these commands please, thanks!
I transferred this issue to PowerShell/PowerShellGetv2 since this is an issue with Install-Module
and Register-Repository
After installing Powershell on Oracle Linux 7.6, I am unable to find and install any modules from PSGallery. When I attempt to run the command
Install-Module -Name VMware.PowerCLI
, I receive the error "No match was found for the specified search criteria and module name 'VMware.PowerCLI'. Try Get-PSRepository to see all available registered module repositories."When I run
Get-PSRepository
, I get the following:"WARNING: Unable to find module repositories."
After searching, I found that this is fixed by running
Register-PSRepository -Default -Verbose
upon which I receive the message "VERBOSE: Performing the operation "Register Module Repository." on target "Module Repository 'PSGallery' () in provider 'PowerShellGet'."."However when I run
Get-PSRepository
again, I still receive the message "WARNING: Unable to find module repositories.".I am not using a proxy or have any special way of getting to the internet. I feel as if this is an issue where it is not downloading the information (maybe due to a certificate problem) or it cannot write the data to an appropriate spot on the system (either permissions or such) but I have no way of verifying or testing. Any help would be appreciated!
Below is my system information:
PS /root> Get-Host
PS /root> Get-PackageProvider Name Version DynamicOptions
[root@ops-center-analyzer ~]# cat /etc/os-release
PS /root> ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=7.31 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=7.28 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=7.39 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=117 time=7.16 ms