Author Posts

September 11, 2015 at 1:42 am

When I run for example the following command:
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

I get the following error:
PackageManagement\Set-PackageSource : The variable '$LocalizedData' cannot be retrieved because it has not been set.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:1673 char:17
+ ... $null = PackageManagement\Set-PackageSource @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (LocalizedData:String) [Set-PackageSource], Exception
+ FullyQualifiedErrorId : VariableIsUndefined,Microsoft.PowerShell.PackageManagement.Cmdlets.SetPackageSource

Any ideas? I have to admit that I'm a Powershell newby.

September 11, 2015 at 3:01 am

Found the problem. The PowShellGet folder under Program files\WindowsPowerShell\Modules did not contain a folder for my culture "en-GB".