Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packer v1 issue #613

Open
kimjong69 opened this issue Jan 14, 2024 · 2 comments
Open

Packer v1 issue #613

kimjong69 opened this issue Jan 14, 2024 · 2 comments

Comments

@kimjong69
Copy link

Cannot convert value "Packer v1" to type "System.Int32". Error: "Input string was not in a correct format."
At D:\ISO Files\metasploitable3\build.ps1:26 char:12

  •     If([INT]$actualVersion[$i] -gt [INT]$expectedVersion[$i]) {
    
  •        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : InvalidCastFromStringToInteger
      This is the error I'm getting when I try running .\build.ps1
@Joemoma1337
Copy link

Hello Kimjong69,
I ran into this same issue while using packer.exe v1.10.2
I had to downgrade to 1.9.1 and the build script now works
Hopefully they update the script to work with latest versions
As a side note, I also downgraded vagrant to 2.3.7 to match the environment of a video i was following.

@SimbaScreams
Copy link

Thank you so much! Ran into the same issue here on November 1st 2024. I did what Joemoma1337 said and it works now. confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants