Hash Error When Installing chocolatey packages


#1

Hi,

I am trying to install sysinternals using chocolatey

ERROR: Checksum for 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\sysinternals\2017.05.16\SysinternalsSuite.zip' did not meet '97afd4053c69ad26163195250ac53670d39c9f59944c436303d2039a042432e8' for checksum type 'sha256'. Consider passing --ignore-checksums if necessary.

I am seeing this error

How to pass the ignore-cheksums to the chcolatey resource

chocolatey 'sysinternals' do
  version '2017.05.16'
  action :install
end

Regards,

A


#2

The package maintainer needs to add a checksum to the chocolatey package.

In the meantime you can work around the issue like so

chocolatey_package 'foo' do
  version '1234'
  options "--allow-empty-checksums"
  action :install
end

#3

Hi,

Thanks a Lot for the reply

Yes Chocolatey Repos seem to be fine now.


#4

However, If I pass the options , I get this error

Chef::Exceptions::ValidationFailed
Option options must be a kind of [Hash]!  You passed "--allow-empty-checksums".

I am using chcolatey cookbook version 1.1.0


#5
chocolatey_package 'sysinternals' do
  version '2017.05.16'
  options "--ignore-checksums"
  action :install
end

This seems to work.

Regards,

A


#6
        Chef::Exceptions::ValidationFailed
   _    Option options must be a kind of [Hash]!  You passed "--allow-empty-checksums".

I am using chcolatey cookbook version 1.1.0

Sorry about this It was stupid of me I was still using chocolatey resource instead of chocolatey_packge.

Below snippet is working for me.

chocolatey_package 'sysinternals' do
  version '2017.05.16'
  options "--ignore-checksums"
  action :install
end

Regards,

A