unable to find repository – need a little help please!

For a while now I have had a lot of red when I work with PowerShell.  See the error:

It turns out I have this issue on a Windows 10 VM, and several Win2K16 VMs.  Been very frustrating.  Not sure what caused it.

The only help when I Google is this article – https://evotec.xyz/update-module-packagemanagementinstall-package-unable-to-find-repository/ – but it did not solve the issue although I thought it would. I did learn some things from it.

I believe the problem is that I cannot upgrade, or remove, PowerShellGet 1.0.0.1.

The order of things I tried was:

remove-module PowerShellGet

uninstall-module PowerShellGet

unregister-PSRepository -Name ‘PSGallery’

exit and reboot the VM

Register-PSRepository -Default

Set-PSRepository -Name ‘PSGallery’ -InstallationPolicy Trusted

exit and reboot the VM

Install-module PowerShellGet -Force

PowerShellGet installs but then we see this issue:

I cannot get rid of that issue.

Now if we do the get-module we see something else.

So I am back in my problem with a lot of red and error messages.  Most things work, all that I have tried but doing updates is an issue.  And I do not like to see all the red.

If anyone has a suggestion or comment on how to fix this I would most appreciate it. I am not a serious PowerShell person, but rather a simple user that does more copy and paste.  So don’t worry about yelling something obvious I have missed at me.

Updates:

  • 12/7/18 – Cody said this sounded familiar to him, and I should delete the 1.0.0.1 module out of the file system.  I thought that a genius idea but I was not able to find this file(s) to delete.  I hope that someone can help me with that.

Michael

=== END ===

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.