Unable to find repository on Update-Module : <p>I'm using Windows 10 and Powershell 5.1</p>

<p>Get-PSRepository has result :</p>

<blockquote>
  <p>PSGallery  Untrusted  <a href="https://www.powershellgallery.com/api/v2" rel="noreferrer">https://www.powershellgallery.com/api/v2</a></p>
</blockquote>

<p>whereas Update-Module returns error</p>

<blockquote>
  <p>PackageManagement\Install-Package : Unable to find repository '<a href="https://www.powershellgallery.com/api/v2/" rel="noreferrer">https://www.powershellgallery.com/api/v2/</a>'. Use
  Get-PSRepository to see all available repositories.
  At C:\Program Files\WindowsPowerShell\Modules\powershellget\2.0.1\PSModule.psm1:13000 char:20
  + ...           $sid = PackageManagement\Install-Package @PSBoundParameters
  +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
     ception
      + FullyQualifiedErrorId : SourceNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage</p>
</blockquote>

<p>Any idea of how to fix it?</p>
