Kubectl Compiled by Homebrew in Linux Lite v4.4 Failed

I got problem in installing kubectl in Linux Lite v4.4

I added the user ‘linuxbrew’ first. Then I installed docker by root. The error messages are as follows:

hack/generate-docs.sh
Last 15 lines from /home/linuxbrew/.cache/Homebrew/Logs/kubernetes-cli/03.generate-docs.sh:
!!! [0628 13:31:23] 1: /tmp/kubernetes-cli-20190628-11831-1he0qrj/src/k8s.io/kubernetes/hack/lib/golang.sh:715 kube::golang::build_some_binaries(…)
!!! [0628 13:31:23] 2: /tmp/kubernetes-cli-20190628-11831-1he0qrj/src/k8s.io/kubernetes/hack/lib/golang.sh:854 kube::golang::build_binaries_for_platform(…)
!!! [0628 13:31:23] 3: hack/make-rules/build.sh:27 kube::golang::build_binaries(…)
!!! [0628 13:31:23] Call tree:
!!! [0628 13:31:23] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(…)
!!! [0628 13:31:23] Call tree:
!!! [0628 13:31:23] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(…)
Makefile:93: recipe for target ‘all’ failed
make: *** [all] Error 1
make: Leaving directory ‘/tmp/kubernetes-cli-20190628-11831-1he0qrj/src/k8s.io/kubernetes’
!!! Error in hack/update-generated-docs.sh:36
Error in hack/update-generated-docs.sh:36. ‘make -C “{KUBE_ROOT}" WHAT="{BINS}”’ exited with status 2
Call stack:
1: hack/update-generated-docs.sh:36 main(…)
Exiting with status 1

$ brew update
Already up-to-date.

$ brew doctor
Your system is ready to brew.

have you tried to just check out the kubernetes repo yourself and try make kubectl since that’s effectively what brew is doing in this case.
then you’d be able to strace and see exactly where it breaks.
it can become tricky since it’s spinning up a mini go environment temporarily in order to build all the things