Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

Filter by
Sorted by
Tagged with
0 votes
2 answers
41 views

zdb.Connect: zdb requires SQLite 3.35.0 or newer

I'm trying to install goatcounter on Ubuntu 20.04. There's no help at Github goatcounter issues https://github.com/arp242/goatcounter/issues I'm getting the error "zdb.Connect: zdb requires ...
user avatar
1 vote
1 answer
202 views

How to install specific version of Go in Ubuntu using snap

I am trying to install Go version 1.16 using a snap package, but not able to. Instead I am getting newer versions. How can I install version 1.16 regardless of what version is currently available?
user avatar
  • 21
2 votes
1 answer
592 views

How to Install GoLang on Ubuntu Server 20.04 LTS: Cannot Execute Binary File

I'm trying to install Golang on my raspberry pi running ubuntu server 20.04LTS and am having a lot of trouble. I could probably use advice on how to make sure I undo and uninstall any changes I made ...
user avatar
0 votes
1 answer
2k views

How to install the latest version of golang in Ubuntu?

i was working on a golang program and it was working correctly til yesterday, this morning i made some changes and get a build and every thing was fine then i tried to run the program through command ...
user avatar
0 votes
0 answers
115 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 ....
user avatar
  • 101
-1 votes
1 answer
44 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.
user avatar
0 votes
1 answer
783 views

Installing Go 16.6 on Ubuntu 20.4

I used the following code to download and install the latest Go version wget -c https://dl.google.com/go/go1.16.6.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local Everything seemed to have gone ...
user avatar
  • 39
-2 votes
1 answer
34 views

Golang: timestamp add not working

the task is this, I need to add 5 minutes to the timestamp, but whatever I do, the time does not change, what am I doing wrong? Example: https://play.golang.org/p/AavonfZk2bn
user avatar
  • 1
4 votes
1 answer
487 views

Duplicate system PATH variable (snap/bin:/snap/bin)

When I run echo $PATH the duplicate output snap/bin:/snap/bin appears at the end and seems unusual. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/...
user avatar
  • 69
0 votes
0 answers
729 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?
user avatar
  • 431
1 vote
1 answer
184 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
0 votes
1 answer
830 views

Go packages not running as sudo

I installed golang via sudo apt install golang-go I installed some go packages, like go get -u github.com/tomnomnom/assetfinder I can run my packages without sudo, but when I do use sudo, the ...
user avatar
0 votes
1 answer
101 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 ...
user avatar
  • 1
1 vote
3 answers
5k views

too many open files for a Golang server running behind Caddy

I am running a Go binary that has an http server with systemd. I have it setup so that Caddy has a reverse-proxy to this go http server. http: Accept error: accept tcp [::]:8002: accept4: too many ...
user avatar
0 votes
0 answers
45 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. ...
user avatar
2 votes
1 answer
1k views

Make command says Go isn't installed but it is (18.04)

I'm dealing with Go language not being installed for building Docker-Machine from source despite it being installed and added to the PATH: utcloud@owncloud:/usr/local/bin/docker-machine$ sudo make /...
user avatar
  • 23
0 votes
1 answer
399 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 ...
user avatar
0 votes
1 answer
988 views

Not able to install golangci-lint in ubuntu 18.04

On installing vim-go in my Ubuntu 18.04 but on following the steps I am getting an error as shown below :- vim-go: Error installing github.com/golangci/golangci-lint/cmd/golangci-lint@master: go: ...
user avatar
1 vote
1 answer
12k views

go: cannot find GOROOT directory error on installing go in wsl

I've installed go v1.14.2 in my root, gave it permission and then moved the go folder to another drive /mnt/d/go Now in the .profile and .bashrc file I've already exported the GOROOT as well as ...
user avatar
2 votes
0 answers
40 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. ...
user avatar
  • 21
1 vote
1 answer
371 views

odeke-em/drive installation

The installation of drive wasn't as straightforward as I thought. I followed these instructions. Go is now working I think. user@ubuntu:~$ go version go: GOPATH entry is relative; must be absolute ...
user avatar
0 votes
1 answer
49 views

How to solve problem same command-line for different apps

I have deployer for the PHP app on my machine with command dep to use it. Recently, I installed dependency management to develop Golang Apps called with the same command, dep. I am trying to use dep ...
user avatar
  • 1
2 votes
1 answer
2k views

Can't Install Go [duplicate]

sudo apt-get update sudo apt-get -y upgrade wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz using this command I download Go to my device after that I try to extract the downloaded archive ...
user avatar
0 votes
2 answers
499 views

Ubuntu Touch: Go get GPS Position

I want to develop a ubuntu touch app that show the currently gps coordinates. What is the best way to get access to the GPS position with go? I could not find any documentation for that. Thank you.
user avatar
  • 103
1 vote
0 answers
64 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 ...
user avatar
  • 978
0 votes
0 answers
2k views

OpenSSL SSL_connect: SSL_ERROR_SYSCALL - build/run golang app

Operating System: Ubuntu 18.04.2 LTS Kernel: Linux 4.15.0-47-generic Architecture: x86-64 First, I run go run main.go others package was running very well. But some problems come through... here is ...
user avatar
0 votes
0 answers
171 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 ...
user avatar
0 votes
1 answer
213 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 ...
user avatar
0 votes
1 answer
2k views

go still run even its path not in environment variable path?

I install go by snap, the path to executable file of go is not in environment variable path, but when I use go run test.go in terminal (from my home directory), go still work. As my understand, the ...
user avatar
  • 179
2 votes
1 answer
2k views

How to install and use pup from golang?

I installed go through snap; now how do I invoke pup? thufir@dur:~/pup$ thufir@dur:~/pup$ go get github.com/ericchiang/pup thufir@dur:~/pup$ thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-...
user avatar
  • 4,333
0 votes
1 answer
2k views

Manually installed go, auto-update in conflict [duplicate]

I have this version of go installed: $ go version go version go1.10.3 linux/amd64 My sources list contains: $ cat /etc/apt/sources.list.d/gophers-ubuntu-archive-bionic.list deb http://ppa.launchpad....
user avatar
  • 1,558
26 votes
6 answers
115k views

command 'go' not found

This is not a programming question. I have a machine running Ubuntu, and I installed Golang on it. It was working fine... I even ran a few programs, but the "go1.11.2.linux-amd64.tar.gz" file was in ...
user avatar
  • 365
0 votes
0 answers
177 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 ...
user avatar
  • 143
1 vote
3 answers
11k views

Unable to install Go dep

I am trying to run the command dep ensure on my Ubuntu 16.04, but the system is unable to find the command. When I run sudo apt install dep or any other installation commands, I always get this error ...
user avatar
  • 113
2 votes
1 answer
472 views

software not installed after successfull apt-get install in ubuntu subsystem on windows 10

I have installed go via sudo apt install golang-1.10-go but I can't execute go afterwards since the shell tells me that go is not installed. I tried to install go again. which tells me it is installed ...
user avatar
3 votes
1 answer
3k 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/...
user avatar
1 vote
1 answer
35 views

U Core hosted on OSX [closed]

id like to start experimenting with snaps on ubuntu core. Ideally start with a Docker image or Virtual Box container. Eventually I want to remotely deploy goLang apps, on rasspi's... but I am ...
user avatar
0 votes
1 answer
1k views

how to install the golang package on a complete different folder and make it run?

I want to install the go lang package on a separate folder, instead of using apt-get install to install it. I'm not keen to use apt-get for many reasons that would be too long to explain here. I did ...
user avatar
  • 151
0 votes
1 answer
658 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 ...
user avatar
  • 109
5 votes
5 answers
12k views

Installation instructions for golang 1.9 into Ubuntu 16.04

I'm looking for the correct way to install golang 1.9 into my laptop that is running Ubuntu 16.04. Many thanks
user avatar
0 votes
0 answers
905 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 ...
user avatar
2 votes
0 answers
479 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. ...
user avatar
4 votes
1 answer
8k views

Where to store global config file for a snap application

I'm currently working on a server side app written in Golang. I want to package the app in a snap package. Where can I store a global configuration file for the app that retains itself even after an ...
user avatar
1 vote
1 answer
748 views

How to use umake to install the Go language (version 1.8) in Ubuntu 16.10?

I am having trouble with installing the latest version of golang on Ubuntu 16.10. After running the sudo umake go command I get the message saying to choose the installation path with the default path ...
user avatar
1 vote
1 answer
1k views

Where is the golang-1.7 binary?

I've installed golang-1.7 on 16.10, but when I run, e.g. go version I get /usr/bin/go: No such file or directory. So I'd like to add the path to $PATH so I can use go 1.7, but I don't know where to ...
user avatar
  • 926
0 votes
1 answer
1k views

I made /usr/local/ world writable, is it secure?

I had problem with npm while using Go(lang) framework Buffalo, the framework couldn't run npm through "sudo" so I needed to make npm world writable using chmod. I ran the following command sudo chmod ...
user avatar
8 votes
3 answers
9k views

How to create a launcher for for JetBrains Gogland

Gogland was released as preview yesterday. And I, being new to Linux have problem making a launcher for it using .desktop file. I have never created .desktop file before, and I am running Ubuntu 14....
user avatar
3 votes
1 answer
1k views

How to install a recent, managed version of golang on Ubuntu 14.04?

The Go programming language (golang) has multiple versions and multiple implementations. Some software requires a more recent version than the 1.2.1 in Ubuntu 14.04 via the golang-go package: $ go ...
user avatar
  • 3,386
1 vote
0 answers
102 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/...
user avatar