Skip to main content

Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

Filter by
Sorted by
Tagged with
71 votes
12 answers
186k views

Updating golang on Ubuntu

I have Ubuntu 14.4.03. The default golang version which came with it was 1.2.1. I would like to update golang to 1.4 or higher. After searching I found the way to do this would be to first delete ...
user3005720's user avatar
54 votes
8 answers
26k views

Any PPAs for Google's Go Language?

Do you know of any URLs for PPAs of Google's Go Language?
Marty's user avatar
  • 2,125
32 votes
7 answers
209k 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 ...
richie's user avatar
  • 425
12 votes
2 answers
9k views

How to properly install Go Language in Ubuntu?

I'm trying follow these instructions to install Drive but I can't get Go to work properly. I keep getting the error: go tool: no such tool "6g" When I try to use go get [url]. I also get this error ...
Bprodz's user avatar
  • 265
11 votes
3 answers
12k 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....
ivan marchenko's user avatar
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
burattim's user avatar
5 votes
2 answers
3k views

Installing the Go Language

How to correctly install and configure the Go Language in Ubuntu. There are many packages to choose from but which packages do I need to install and what do I need to configure afterwards to be able ...
Luis Alvarado's user avatar
5 votes
1 answer
659 views

How do I develop a Ubuntu application using the Go language?

I want to develop some application for the Ubuntu platform. But I don't know C++. I can learn QML very easily. The problem is that the logic or process behind the scene in an application seems to use ...
Rahul Sinha's user avatar
4 votes
1 answer
17k 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?
Vimal's user avatar
  • 51
4 votes
2 answers
1k views

I've installed golang with accordance with the wiki yet "go get" is missing

I've installed everything go-related from synaptic and later added ppa as described in the wiki: https://wiki.ubuntu.com/Go yet I cannot do "go get" for example go get code.google.com/p/gorilla/mux ...
Moonwalker's user avatar
4 votes
1 answer
9k 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 ...
Evan Lin's user avatar
4 votes
1 answer
2k 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:/...
XJMZX's user avatar
  • 69
3 votes
1 answer
30k 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 ...
khaled moazedi's user avatar
3 votes
1 answer
159 views

Can not install juju from "go install"

I had already config golang env on ubuntu os and go get juju from github to my local lab . I can successfully run following command, 1. godeps -u dependencies.tsv 2. make install-dependencies 3. ...
ChunFeng's user avatar
  • 105
3 votes
1 answer
2k views

Command 'Go' not found after installing on WSL with Ubuntu 20.04. Go is in $PATH

I've been struggling with this (seemingly) straightforward installation. If I run echo $PATH I get the following as part of the output /usr/local/go/bin:/usr/local/go-1.19.2/bin. What's even more ...
Tanay Roman's user avatar
3 votes
1 answer
5k 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 ...
T0adMomo's 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 ...
nealmcb's user avatar
  • 3,656
3 votes
1 answer
7k 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 ...
Dinushi Dhananjani's user avatar
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
1 answer
530 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 ...
Rene Pickhardt's user avatar
2 votes
1 answer
4k 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-...
Thufir's user avatar
  • 4,571
2 votes
1 answer
3k 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 /...
Mark's user avatar
  • 123
2 votes
2 answers
2k views

How to run a golang restful api as service in ubuntu server

I need to run golang restful server that build using gin framework and mongodb as service in my ubuntu server.how can do this? (every time i run the go script i need to this also gvm use go1.4)
Nuwan Indika's user avatar
2 votes
0 answers
46 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
523 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
3 answers
13k 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 ...
Ruby's user avatar
  • 113
1 vote
3 answers
8k 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_78361084's user avatar
1 vote
1 answer
490 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 ...
Lare Larsson's user avatar
1 vote
1 answer
38 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 ...
IrishGringo's 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 ...
Seamus's user avatar
  • 936
1 vote
1 answer
733 views

Error while installing go language

I'm following the steps from this link to install go. sudo apt-get install python-software-properties # 12.04 sudo add-apt-repository ppa:duh/golang sudo apt-get update sudo apt-get install golang ...
RedFox's user avatar
  • 113
1 vote
1 answer
539 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
1 answer
19k 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 ...
Neel Modi's user avatar
1 vote
0 answers
89 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,173
1 vote
1 answer
791 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 ...
Thomas Lloyd's user avatar
1 vote
0 answers
106 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
79 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
3 answers
886 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 ...
BlueDogRanch's user avatar
0 votes
1 answer
2k 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 ...
Indu Pillai's user avatar
0 votes
1 answer
2k 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 ...
Zimex's user avatar
  • 39
0 votes
1 answer
1k 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: ...
Neel Modi's 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 ...
Andy K's user avatar
  • 161
0 votes
1 answer
334 views

how can I use golang as a new user?

I'm working on a shell script that installs some binaries as systemd service. To keep things clean, the service is running under a new user. I want to keep all binaries in the home of that new user. ...
SCBuergel's user avatar
  • 181
0 votes
1 answer
2k 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 ...
hackermannn's user avatar
0 votes
1 answer
3k 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 ...
ydhhat's user avatar
  • 201
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....
Mittenchops's user avatar
  • 1,620
0 votes
1 answer
2k views

Cannot run go install on Ubuntu

When I run the go install command for my custom packages on Ubuntu 14.04 I got this error: go install: no install location for .go files listed on command line (GOBIN not set) How can i set $GOBIN ...
Dariush Abbasi's user avatar
0 votes
0 answers
228 views

How to install delve(debugger for golang) on ubuntu?

The problem is that according to the instructions in the repository(https://github.com/go-delve/delve/blob/master/Documentation/installation/README.md) I can not install delve, but through "sudo ...
Edgar2000's user avatar
0 votes
0 answers
18 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
83 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
  • 173