Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
1 answer
4k views

i want to install specific version of go programming language(1.7.5 ) in ubuntu 16.04

wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz extract the package sudo tar -zxvf go1.7.5.linux-amd64.tar.gz -C /usr/local/ Added by Go Path echo 'export GOROOT=/usr/local/...
m.d venkatesh's user avatar
2 votes
0 answers
45 views

Startup Application Preference, won't run Golang Executable

Added the following to my Startup Application Preferences under 18.04. (cd /absolute/path/to/executable_dir && exec ./executable) The above command runs the executable no problem manually. ...
osuairt's user avatar
  • 21
2 votes
0 answers
509 views

Ubuntu Core on Raspberry Pi 3 SPI driver isn't available

I have Golang program for Raspberry Pi 3 that reads data using SPI. I use this library to do that: https://github.com/kidoman/embd. And it works ok on Raspbian OS. I tried to port it to Ubuntu Core. ...
Ivan Vasiunyk's user avatar
1 vote
1 answer
497 views

apt install gccgo-go doesn't install gccgo in Docker image

Summary apt install gccgo-go doesn't install ggcgo in a Docker image build, but it does when run from an image container. Details I have an Ubuntu 20.04 Docker image that I created to test some simple ...
Moebius-Rex's user avatar
1 vote
0 answers
88 views

What is the proper way to install the latest version of Go on Ubuntu 18.04?

This question might be overly simple, but I just want to make sure I'm not falling into some anti-pattern regarding package installation. I found the official installation instructions; however since ...
Wildcard's user avatar
  • 1,153
1 vote
0 answers
105 views

Go app won't compile in Ubuntu SDK

I'm trying to create a new Ubuntu Touch App with Go and QML using the template in the SDK. The application won't build and gives the following error. 17:41:47: Running command go get -d -u gopkg.in/...
Reuben Swartz's user avatar
1 vote
1 answer
74 views

Error building .click package with click build .: '...' is not a directory

Error I get when building a .click package, which is an Ubuntu Phone scope: ERROR: 'my-scope' is not a directory Any idea what this could be referring to? Thanks!
elimisteve's user avatar
0 votes
0 answers
12 views

U22.04 How to set the network card to STA+P2P (GO) mode?

My computer inf: SYS VER : 22.04 WIFI CARD : AX201 iw list : Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * P2P-client *** P2P-GO** * P2P-device
sirong zhou's user avatar
0 votes
0 answers
63 views

Unable to deploy golang webapp on Ubuntu 22.04 server with ISPConfig 3.11

As the server is equiped with ISPConfig control panel and Apache2 is installed during the ISPConfig installation, I am not able to deploy golang webapp on the /web directory (tried both go run webapp....
Shobeira's user avatar
  • 153
0 votes
0 answers
152 views

Ubuntu server 20.04 temporary failure in name resolution

I have installed ubuntu server 20.04 in VirtualBox and setup static ip address. now I am trying to install golang but shows this "Resolving go.dev(godev)...failed:temporary failure in name ...
Rasangi's user avatar
0 votes
0 answers
37 views

Discover how Go was installed

Is it possible to discover how the latest version of go was installed on my Ubuntu 22.04 system? I think it was installed in 2 different ways, thinking of updating it in a consistent way so theres no ...
gameveloster's user avatar
0 votes
0 answers
295 views

Error while loading .profile on ubuntu 20.04

Yesterday I have changed my .profile to include go path. And it looks like this: if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then ....
Javlon's user avatar
  • 101
0 votes
0 answers
2k views

bettercap v2 installation

I'm trying to install bettercap by following this page https://www.bettercap.org/installation/#linux-deploy-method-debian-based-like-ubuntu but it is not installing, what to do?
Abhi4mu's user avatar
  • 539
0 votes
0 answers
35 views

Installing a software written in Go

Id like to know how can I install this software which is written in Go. It's my first time that I download a software from git. Should I download the zip or can I copy the repository. I will ...
Gennaro Arguzzi's user avatar
0 votes
1 answer
185 views

How do I build Docker Machine from source ? (20.04)

I need to build Docker Machine from source. I've gathered that the easiest way is to use GOPATH but I can't seem to find anywhere how to do it ? I've got Docker Machine source code on my machine but ...
wood's user avatar
  • 1
0 votes
0 answers
65 views

Unable to use go-reddit

So I recently decided to try and learn Go development, and I decided I would try to learn the Go-Reddit module. I managed to install it using go get install github.com/vartanbeno/go-reddit@master. ...
Zander's user avatar
  • 1
0 votes
1 answer
678 views

LiteIDE on ubuntu 20.10

I'm starting to play with go and thought the idea of an ide might be a nice throwback to the days of C++ programming. The only one that seems to be open source and sort of maintained that I can find ...
Peter Nunn's user avatar
0 votes
0 answers
222 views

Exec format error, transferring file with filezilla

I have a compiled file written with golang, if I transfer the file to another PC with a usb driver, and add the permission with sudo chmod +x myfile, it runs perfectly, but when I transferr the file ...
Pourya 's user avatar
0 votes
1 answer
254 views

How to create snap YAML file of program written in golang sciter library?

could you please help me? How to create YAML file for golang application written in language go named golang and sciter library https://sciter.com/ ? I mean how what to write to yaml file to have ...
Lesna Vevericka's user avatar
0 votes
0 answers
249 views

Snapcraft - Build snap using a specific golang version

I have been trying to build my application via snap. However, snap uses go version 1.6 by default. I need at least go 1.10 though. How'd I go on about that? I couldn't find anything useful in the ...
Marcel's user avatar
  • 143
0 votes
1 answer
870 views

Can't use go in Visual Studio Code terminal

I have the latest versions of Visual Studio Code and Go compiler. When I am trying to build file in Visual Studio Code terminal using go build [FILENAME] I get this output: The program 'go' can be ...
Kirill O.'s user avatar
  • 109
0 votes
0 answers
1k views

dpkg: error processing archive /var/cache/apt/archives/golang-1.6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb (--unpack):

When I am running sudo apt-get -f install, it shows dpkg: error processing. Please find the complete logs below and advise how to solve this. I am running VB 5.0.10 with Ubuntu 16.04 and already ...
JosephCenk's user avatar
0 votes
1 answer
2k views

Using 'drive' google drive cli

I installed the (quasi?) official gdrive linux cli based on instructions from howtogeek. This failed with the following message: $ go get github.com/odeke-em/drive/cmd/drive go tool: no such ...
birone's user avatar
  • 101
-1 votes
1 answer
59 views

#golang Starting go run

Every time I start my PC, Go is automatically inactive, so I have to extract it every day. What I should do with that problem? I want Go to work constantly.
Yusuf Tilavov's user avatar