Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails for Windows WSL Ubuntu 18.04 #272

Closed
ashleve opened this issue Jan 8, 2021 · 2 comments
Closed

Installation fails for Windows WSL Ubuntu 18.04 #272

ashleve opened this issue Jan 8, 2021 · 2 comments
Assignees
Labels

Comments

@ashleve
Copy link

ashleve commented Jan 8, 2021

Describe the bug
Installation fails for Windows WSL Ubuntu 18.04.

To Reproduce
What I did:

sudo apt-get update
sudo apt install golang-go
go get -u github.com/justjanne/powerline-go

Error I get on go get -u github.com/justjanne/powerline-go:

# golang.org/x/term
/home/ukasz/go/src/golang.org/x/term/term_unix_linux.go:9:26: ioctlReadTermios redeclared in this block
        previous declaration at /home/ukasz/go/src/golang.org/x/term/term_unix_aix.go:9:26
/home/ukasz/go/src/golang.org/x/term/term_unix_linux.go:10:27: ioctlWriteTermios redeclared in this block
        previous declaration at /home/ukasz/go/src/golang.org/x/term/term_unix_aix.go:10:27

Environment:

  • Linux subsystem for Windows with Ubuntu 18.04 LTS
  • Shell: bash
@ashleve ashleve added the bug label Jan 8, 2021
@justjanne
Copy link
Owner

This looks like golang.org/x/term is broken on WSL Ubuntu 18.04? If any other user has more information on this, I’d love to try to debug it, as this seems like a very weird issue.

@justjanne justjanne self-assigned this Jan 8, 2021
@justjanne
Copy link
Owner

@hobogalaxy Your version of golang-go is too old. Please follow the official guide from the golang creators here https://github.com/golang/go/wiki/Ubuntu on how to install the correct version of golang:

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go

@justjanne justjanne pinned this issue Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants