1

I have upgraded golang from version 1.6 to 2.6 in ubuntu with this command : sudo apt dist-upgrade golang but when I run go version it still shows old version. how I can make ubuntu to use newer version?

6
  • 3
    I think the latest Go is 1.9.something, 2.6 seems impossible. Commented Nov 21, 2017 at 12:20
  • Try the steps outlined here: askubuntu.com/a/755392 Commented Nov 21, 2017 at 12:24
  • @mkopriva: Run $ sudo apt show golang. Output: Package: golang Version: 2:1.6-1ubuntu4. Commented Nov 21, 2017 at 12:30
  • 1
    @peterSO fair enough, but that seems to be the version of the apt package for golang, not of golang itself. Commented Nov 21, 2017 at 12:44
  • 1
    @mkopriva: The question said sudo apt dist-upgrade golang. Commented Nov 21, 2017 at 12:52

1 Answer 1

2

Run sudo apt purge golang to remove your current installation.

Follow the Go Getting Started instructions to install a current, supported version of Go.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.