mandiant / mandiant/commando-vm

BUG

Open
#328 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
7.8k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

PS C:\Users\rr\Desktop\commando-vm-main> .\install.ps1
[+] Retrieving available packages from MyGet. Please wait.
[+] Beginning graphical install
[+] Settings updated, beginning install. Please wait for a popup letting you know the installation is complete!
[+] Installing Boxstarter
Chocolatey is going to be downloaded and installed on your machine. If you do not have the .NET Framework Version 4 or greater, that will also be downloaded and installed.
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.3.0.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.3.0 to C:\Users\rr\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Did not detect Chocolatey and unable to install. Installation of Boxstarter has been aborted.
Get-Content : Cannot find path 'C:\ProgramData\boxstarter\boxstarter.chocolatey\Chocolatey.ps1' because it does not
exist.
At C:\Users\rr\Desktop\commando-vm-main\install.ps1:1016 char:10

  • if ((Get-Content $fileToFix -raw) -contains $offendingString) {
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...\Chocolatey.ps1:String) [Get-Content], ItemNotFoundEx
      ception
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : Cannot find path 'C:\ProgramData\boxstarter\boxstarter.chocolatey\invoke-chocolatey.ps1' because it does
not exist.
At C:\Users\rr\Desktop\commando-vm-main\install.ps1:1022 char:10

  • if ((Get-Content $fileToFix -raw) -contains $offendingString) {
    
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...-chocolatey.ps1:String) [Get-Content], ItemNotFoundEx
      ception
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with install.ps1 around lines 1016 and 1022, where the script reads Chocolatey.ps1 and invoke-chocolatey.ps1 after the Boxstarter installation attempt. Reproduce the failure on Windows and inspect the preceding Chocolatey and Boxstarter setup flow. Done means the installation handles the reported failure without attempting to read missing files and reaches a clear completion state.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.