Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 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
  • 143
0 votes
0 answers
12 views

What can i do ?E: The repository 'http://ppa.launchpad.net/gophers/archive/ubuntu focal Release' does not have a Release file [duplicate]

Err:10 http://ppa.launchpad.net/gophers/archive/ubuntu focal Release 404 Not Found Reading package lists... Done E: The repository 'http://ppa.launchpad.net/gophers/archive/ubuntu focal Release' ...
Erlangga's user avatar
0 votes
0 answers
88 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
23 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
1 answer
207 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
  • 173
3 votes
1 answer
1k 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
0 votes
3 answers
362 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
3 votes
1 answer
10k 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
  • 41
2 votes
1 answer
4k 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
0 votes
1 answer
17k 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
0 votes
0 answers
265 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
-1 votes
1 answer
50 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
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
-2 votes
1 answer
61 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
paymex's user avatar
  • 1
4 votes
1 answer
1k 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
0 votes
0 answers
1k 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
  • 531
1 vote
1 answer
413 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
0 votes
0 answers
34 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
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
177 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
1 vote
3 answers
7k 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
0 votes
0 answers
61 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
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
  • 23
0 votes
1 answer
588 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
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
1 vote
1 answer
17k 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
2 votes
0 answers
41 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
1 vote
1 answer
456 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
0 votes
1 answer
56 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 ...
red's user avatar
  • 3
2 votes
1 answer
5k 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
0 votes
2 answers
999 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.
beli3ver's user avatar
  • 103
1 vote
0 answers
82 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,108
0 votes
0 answers
3k 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 ...
casualmind's user avatar
0 votes
0 answers
212 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
237 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
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
2 votes
1 answer
3k 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,451
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,590
31 votes
7 answers
177k 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
  • 415
0 votes
0 answers
237 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
1 vote
3 answers
12k 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
2 votes
1 answer
513 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
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
1 vote
1 answer
37 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
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
803 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
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
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
2 votes
0 answers
498 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
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