debuild notify make [1]:go:找不到命令

enz*_*ang 2 debian go

我需要为我的golang程序构建一个deb.

当我运行debuild -uc -us时告诉:

fakeroot debian/rules clean 
dh clean  
dh_testdir  
dh_auto_clean  
make[1]: Entering directory `/home/vagrant/zbus'  
go clean ./zbus-cli/  
make[1]: go: Command not found  
make[1]: *** [clean] Error 127  
make[1]: Leaving directory `/home/vagrant/zbus'  
dh_auto_clean: make -j1 clean returned exit code 2  
Run Code Online (Sandbox Code Playgroud)

我的go编译器安装正确,为什么它仍然没有找到命令?

Che*_*aoh 5

显然,我刚遇到这个问题,发现使用此go命令时缺少一个包.

在Ubuntu上,我不得不安装golang-go软件包.

sudo apt-get install golang-go
Run Code Online (Sandbox Code Playgroud)

另外,我实际上只是输入go了终端,它给了我相同的命令来键入以检索该包.