Chocolatey – Error: Collection is read-only

Apr 27, 2016 General
[Reading Time: 2 minutes]

If you are a Windows Insider and received the latest Build 14331/14332 than you may have some troubles getting choco command running in a Powershell. If you try install a package – it doesn’t matter which – than you will get followin output:

(example of installing netscan)

What happend… a bug in Powershell. So, if you like to avoid this, than you have some options Smile

1) Go back to a stable previous Build

2) Wait, until everything gets fixed

3) do the following:

Open file “C:\ProgramData\Chocolatey\helpers\chocolateyScriptRunner.ps1”. Replace
in the header of that file by
as a quick fix. After that, you can try your install once again. It should now succeed.

Please see this post, where I got this fix from, for details:

By Thomas

I work as a director at CGI in Stuttgart. Responsible for the topic of innovation in the cloud and DevOps, I drive various topics like IoT, AI and Cloud with teams. The agile transformation of German IT companies or ministries plays a major role here, as does the modernization of applications using smart services. For almost two decades I have been supporting as IT architect, developer and coach. I am also very active in the community. As host of Azure Meetup Konstnaz & Region, as well as co-host of Azure Meetup Stuttgart and as co-admin of GitHub Meetup Stuttgart, I would like to share knowledge and experience with like-minded people.

One thought on “Chocolatey – Error: Collection is read-only”

Leave a Reply

Your email address will not be published. Required fields are marked *

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