Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

vic-marroquin commented Mar 19, 2019

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

sarkiroka commented Jun 29, 2019

It works!

@tienthanh2509
Copy link
Author

tienthanh2509 commented Jun 30, 2019

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

andrew1337 commented Jan 9, 2020

awesome, thanks

@AlexandrVovk
Copy link

AlexandrVovk commented Jun 18, 2020

thank you so much

@felrobotics
Copy link

felrobotics commented Jun 25, 2020

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

HristoKolev commented Jul 28, 2020

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

HristoKolev commented Jul 28, 2020

@BlivionIaG
Copy link

BlivionIaG commented Jul 28, 2020

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

mohammadsheikhian commented Sep 3, 2020

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