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
@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