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

Packbox gives iso_checksum_type error #5

Open
bretton opened this issue Feb 19, 2022 · 2 comments
Open

Packbox gives iso_checksum_type error #5

bretton opened this issue Feb 19, 2022 · 2 comments

Comments

@bretton
Copy link
Contributor

bretton commented Feb 19, 2022

When running potman packbox on Ubuntu 20.04 LTS, there is an error for the ISO checksum type.

$ potman packbox
Cloning into '_build/packer'...
remote: Enumerating objects: 506, done.
remote: Counting objects: 100% (58/58), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 506 (delta 21), reused 35 (delta 9), pack-reused 448
Receiving objects: 100% (506/506), 104.67 KiB | 342.00 KiB/s, done.
Resolving deltas: 100% (285/285), done.
Note: switching to '517f434bd960f97552a8fb6cd35f3cd2de09c492'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 517f434 master -> main
virtualbox-iso output will be in this color.

1 error(s) occurred:

* The iso_checksum_type must be specified.
error: Initialize failed

This is due to an outdated version of packer on Ubuntu 20.04 LTS:

packer --version
1.3.4

Solution is to make sure a more recent version of packer is installed (v1.7.10)

curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install packer

packer --version
1.7.10
@grembo
Copy link
Collaborator

grembo commented Feb 19, 2022

Ubuntu 20.04.3 ?

@bretton
Copy link
Contributor Author

bretton commented Feb 19, 2022

Yup

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.3 LTS
Release:	20.04
Codename:	focal

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

2 participants