From 737c16931f8dd11e3a79c0d232a88ff174011a97 Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Sat, 30 Jan 2021 04:15:15 +0100 Subject: [PATCH] Old Ubuntu: Use up-to-date version of golang (#216) Currently, the install recommends using an out-of-date version of golang, which in turn causes issues while installing powerline-go. --- TerminalDocs/tutorials/powerline-setup.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TerminalDocs/tutorials/powerline-setup.md b/TerminalDocs/tutorials/powerline-setup.md index e68f3c18..57f41e23 100644 --- a/TerminalDocs/tutorials/powerline-setup.md +++ b/TerminalDocs/tutorials/powerline-setup.md @@ -102,6 +102,13 @@ sudo apt install golang-go go get -u github.com/justjanne/powerline-go ``` +> [!TIP] +> If you're using Ubuntu 18.04 or 16.04, you'll need to first install the correct version of golang: +> ```bash +> sudo add-apt-repository ppa:longsleep/golang-backports +> sudo apt update +> ``` + ### Customize your Ubuntu prompt Open your `~/.bashrc` file with `nano ~/.bashrc` or the text editor of your choice. This is a bash script that runs every time bash starts. Add the following, though beware that GOPATH may already exist: