nix-community / nixbox

NixOS Vagrant boxes [maintainer=@ifurther]
https://app.vagrantup.com/nixbox/
MIT License
304 stars 101 forks source link

Checksum errors #68

Closed 54696d21 closed 6 months ago

54696d21 commented 3 years ago

I get consistent checksum errors for the download. Is it save to edit them? I assume the simply changed.

Context: I'm trying to build it on a fully updated Arch Linux on a x86_64 box.

Thanks :)

==> virtualbox-iso: Got: f53926a59612ae9515cc35f4ad17e5d41d4a5c80cb5dde1ec6e81a738c00c7c8
==> virtualbox-iso: *sha256.digest]
Build 'virtualbox-iso' errored after 33 seconds 442 milliseconds: error downloading ISO: [Checksums did not match for /home/pete/nixbox/packer_cache/2154d5541ec60461e4d23b8144e0d60e48e6a3ba.iso.
Expected: 4dcda77f30ff97832b80b74686068c896674d09c9b222e6c05f85f91cbbbbc5b
Got: f53926a59612ae9515cc35f4ad17e5d41d4a5c80cb5dde1ec6e81a738c00c7c8
*sha256.digest 
zimbatm commented 3 years ago

Do you mind sending another PR? #67 might have sent the wrong checksums.

PierreR commented 3 years ago

@zimbatm how is it possible to have a stable sha256 if https://channels.nixos.org/nixos-20.09/latest-nixos-minimal-x86_64-linux.iso is used ?

zimbatm commented 3 years ago

It's not. It should be pinned to a specific version.

maelp commented 2 years ago

I have also a checksum error

$ packer build --only=virtualbox-iso nixos-x86_64.json
[...]
    virtualbox-iso: latest-nixos-minimal-x86_64-linux.iso 674.00 MiB / 674.00 MiB  100.00% 1m4s
==> virtualbox-iso: Checksum did not match, removing nixbox/packer_cache/ba16d535fa72db65dd6121d50c26604060b15036.iso
==> virtualbox-iso: Expected: 9e66b8f763cf66ca1ce0f0556e52466c91b68a58b503b086348017ace04f2437
==> virtualbox-iso: Got: a0a0862e59709edcd004f058c5f4c73c024357c27096a320b93b16ca678371ea