Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
ADVERTENCIA: No se pueden encontrar repositorios de módulos

Intenté instalar Docker en el estándar de Windows Server 2016 activado. “Install-Module -Name DockerMsftProvider -Repository PSGallery -Force” pero fallé. Sugirió que no puede encontrar PSGallery. "Get-PSRepository" .

El error:

ADVERTENCIA: No se pueden encontrar repositorios de módulos .

Busqué en Google 3 formas de resolverlo, pero ninguna funcionó.

  1. Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Verbose -Force con éxito.

  2. Instalé chocolatey con éxito.

  3. "powershell Register-PSRepository -Name "PSGallery" –SourceLocation "https://www.powershellgallery.com/api/v2/" -InstallationPolicy Trusted" pero fallé. Me pidió que usara "Register-PSRepository -Default" .

Intenté "powershell Register-PSRepository -Default -Name "PSGallery" –SourceLocation "https://www.powershellgallery.com/api/v2/" -InstallationPolicy Trusted" pero aún fallé.

¿Como puedó resolver esté problema?

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Con la obsolescencia de TLS 1.0 y 1.1 para PowerShell Gallery a partir de abril de 2020 , los cmdlets Update-Module e Install-Module se rompieron. Por lo tanto, de acuerdo con este artículo , se deben ejecutar algunos comandos para que vuelvan a estar vivos:

 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module PowerShellGet -RequiredVersion 2.2.4 -SkipPublisherCheck

Si eso todavía no funciona, ejecute los siguientes comandos:

 [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 Register-PSRepository -Default -Verbose Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

TLS 1.0 y 1.1 también quedaron obsoletos recientemente en NuGet.org: nuget.org obsoleto TLS 1.0 y 1.1 Pero eso también fue anunciado previamente .

about 4 years ago · Santiago Trujillo Report

0

Simplemente ejecutar Register-PSRepository -Default (sin ningún parámetro adicional) funcionó para mí. Después de eso, la Galería se registró con éxito:

 PS C:\Windows\system32> Get-PSRepository Name InstallationPolicy SourceLocation ---- ------------------ -------------- PSGallery Untrusted https://www.powershellgallery.com/api/v2/
about 4 years ago · Santiago Trujillo Report

0

Mi problema era la configuración de Proxy que faltaba

mejor solución de los comentarios: https://www.zerrouki.com/working-behind-a-proxy/
gracias a @vadzim


En PowerShell abre Perfil

 PS> notepad $PROFILE

esto abre el Bloc de notas con la configuración de su perfil, se creará o no existe.
Luego añade:

 [system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://webproxy.yourCompany.com:PORT') [system.net.webrequest]::defaultwebproxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials [system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true

de alguna manera mi proxy local está configurado pero no funciona. mismo problema más tarde con Docker, =>

 > PS> [Environment]::SetEnvironmentVariable("HTTP_PROXY", http://username:password@proxy:port/", [EnvironmentVariableTarget]::Machine)

luego reinicie el servicio docker

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!