PowerShellGetv2
PowerShellGetv2 copied to clipboard
PSGallery Not Registering as Repository on Oracle Linux 7.6
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
- Name : ConsoleHost
- Version : 7.1.3
- InstanceId : 26793cc3-f3fc-4bb8-afee-faa949de4637
- UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
- CurrentCulture : en-US
- CurrentUICulture : en-US
- PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
- DebuggerEnabled : True
- IsRunspacePushed : False
- Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS /root> Get-PackageProvider Name Version DynamicOptions
- NuGet 3.0.0.1 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
- PowerShellGet 2.2.5.0 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, AllowPrereleaseVersions, Filter, Tag, Includes, DscResource…
[root@ops-center-analyzer ~]# cat /etc/os-release
- NAME="Oracle Linux Server"
- VERSION="7.6"
- ID="ol"
- VARIANT="Server"
- VARIANT_ID="server"
- VERSION_ID="7.6"
- PRETTY_NAME="Oracle Linux Server 7.6"
- ANSI_COLOR="0;31"
- CPE_NAME="cpe:/o:oracle:linux:7:6:server"
- HOME_URL="https://linux.oracle.com/"
- BUG_REPORT_URL="https://bugzilla.oracle.com/"
- ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
- ORACLE_BUGZILLA_PRODUCT_VERSION=7.6
- ORACLE_SUPPORT_PRODUCT="Oracle Linux"
- ORACLE_SUPPORT_PRODUCT_VERSION=7.6
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
@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