File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [ "$MODE" = "pcn-k8s" ] ; then \
19
19
GOOS=linux go build -o /pcn_k8s . ; \
20
20
fi && \
21
21
apt-get purge --auto-remove -y git bison cmake flex \
22
- libllvm5.0 llvm-5.0-dev libclang-5.0-dev uuid-dev autoconf \
22
+ libllvm5.0 llvm-5.0-dev libclang-5.0-dev uuid-dev autoconf software-properties-common golang-go \
23
23
libtool curl && \
24
24
apt-get clean && \
25
25
rm -fr /root /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/local/go/*
Original file line number Diff line number Diff line change @@ -65,10 +65,17 @@ $SUDO apt install -y wget gnupg2
65
65
66
66
echo " Install golang v1.12"
67
67
# TODO: v1.12 still not available in repos
68
- wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
69
- $SUDO tar -xvf go1.12.6.linux-amd64.tar.gz
70
- $SUDO mv go /usr/local
71
- $SUDO ln -s /usr/local/go/bin/go /usr/bin
68
+ # wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
69
+ # $SUDO tar -xvf go1.12.6.linux-amd64.tar.gz
70
+ # $SUDO mv go /usr/local
71
+ # $SUDO ln -s /usr/local/go/bin/go /usr/bin
72
+
73
+ $SUDO apt-get install -y software-properties-common
74
+ $SUDO add-apt-repository ppa:longsleep/golang-backports
75
+ $SUDO apt-get update
76
+ $SUDO apt install -y golang-go
77
+ # $SUDO ln -s /usr/bin
78
+
72
79
73
80
$SUDO sh -c " echo 'deb http://download.opensuse.org/repositories/home:/liberouter/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:liberouter.list"
74
81
wget -nv https://download.opensuse.org/repositories/home:liberouter/xUbuntu_18.04/Release.key -O Release.key
You can’t perform that action at this time.
0 commit comments