When using pub or flutter to install libraries it fails with errors like this:
$ flutter packages get
gzip: warning: <stdin>: trailing junk was ignored
gzip: warning: <stdin>: trailing junk was ignored
tar: Child returned status 1
tar: Error is not recoverable: exiting now
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: warning: <stdin>: trailing junk was ignored
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: warning: <stdin>: trailing junk was ignored
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: warning: <stdin>: trailing junk was ignored
tar: Child returned status 1
tar: Error is not recoverable: exiting now
In Clear Linux pigz is installed and it wraps gzip and gunzip.
The flutter
and pub
tools require the streaming functionality that real gunzip provides.
To resolve I installed brew for linux. Then ran brew install gzip
and then make sure the brew path is preferred in my $PATH.