'Mac M1 apple chip: Hyperledger Fabric samples download: "2.4.1 platform specific fabric binary is not available to download" Error

On my mac M1 computer, Trying to download Fabric binaries and images using following command:

curl -sSL <URL for Fabric 2.4.1> | bash -s

Getting the error:

===> Downloading version 2.4.1 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v2.4.1/hyperledger-fabric-darwin-arm64-2.4.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     23      0 --:--:-- --:--:-- --:--:--    23
tar: Error opening archive: Unrecognized archive format
==> There was an error downloading the binary file.

------> 2.4.1 platform specific fabric binary is not available to download <----


Solution 1:[1]

At the time of writing, Hyperledger Fabric is not publishing Docker images built for M1 Mac.

Solution 2:[2]

I forked the fabric-samples repository and updated the docker images to make it work on apple m1 chip.

Feel free to check it out: https://github.com/gpietro/fabric-samples-apple-m1

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 bestbeforetoday
Solution 2 Pietro