Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Last active November 22, 2021 12:29
Show Gist options
  • Star 36 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save tienthanh2509/50094f55439e19af3a09911aa5c48852 to your computer and use it in GitHub Desktop.
Save tienthanh2509/50094f55439e19af3a09911aa5c48852 to your computer and use it in GitHub Desktop.
Install OpenVPN 2.4.x on Ubuntu 16.04 Xenial
curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
apt update
apt install -y openvpn
@Ri-ta
Copy link

Ri-ta commented Feb 19, 2019

Thank you!

@boypuro
Copy link

boypuro commented Feb 25, 2019

Thanks

@vic-marroquin
Copy link

Hi, on ubuntu 14.04 I needed to add a dash at the final of the first line:

curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -

@CikaLaza
Copy link

CikaLaza commented Apr 1, 2019

Helpful, thanks!

@sarkiroka
Copy link

It works!

@tienthanh2509
Copy link
Author

Hi, on ubuntu 14.04 I needed to add a dash at the final of the first line:

curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -

Thanks, updated

@leonardojulius
Copy link

leonardojulius commented Jul 3, 2019

Yes It works.!

@andrew1337
Copy link

awesome, thanks

@AlexandrVovk
Copy link

thank you so much

@felrobotics
Copy link

thanks, works perfectly in ubuntu 16.04

@BlivionIaG
Copy link

BlivionIaG commented Jul 26, 2020

Hi, the key has expired yesterday, how do we get around that ? I guess we need to wait for openvpn to regenerate or extend the certificate. Do you know an alternate repo ?

@HristoKolev
Copy link

Just delete the old key and install it add it again.

apt-key del E158C569 

wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -

@HristoKolev
Copy link

@BlivionIaG
Copy link

Just delete the old key and install it add it again.

apt-key del E158C569 

wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -

i did do that before asking but i haven't tried it since, i just installed the new .deb i wanted with dpkg, i'll see if they extended the expiration date.

@mohammadsheikhian
Copy link

Thank you!

@carolinux
Copy link

carolinux commented Jan 6, 2021

It basically works - thank you. I had to use sudo for all these commands.
Also for some reason the echo command didn't work so I did a touch for the file /etc/apt/sources.list.d/openvpn-aptrepo.list and then sudo gedit to add the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment