Cant't upgrade/update OpenVPN from 2.3.10 to 2.4.5

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ryanrazer
OpenVpn Newbie
Posts: 10
Joined: Sat Mar 03, 2018 12:57 pm

Cant't upgrade/update OpenVPN from 2.3.10 to 2.4.5

Post by ryanrazer » Sat Mar 03, 2018 2:06 pm

Hello!

I am trying to upgrade our OpenVPN server from 2.3.10 to 2.4.5 version but without success.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openvpn

I even tried:

Code: Select all

If it's lower than version 2.3.4 even after the updates, most likely the available repositories for your distribution
is not supported anymore. In this case, simply get the OpenVPN package from their own official repositories by running
these commands (as root) below:

wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -
 
echo "deb http://swupdate.openvpn.net/apt <OSRELEASE> main" > /etc/apt/sources.list.d/swupdate.openvpn.net.list
Tried all that and terminal gives me:

Code: Select all

sudo apt-get install openvpn
Reading package lists... Done
Building dependency tree
Reading state information... Done
openvpn is already the newest version (2.3.10-1ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo openvpn --version
gives me
OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>


Any ideas why it keeps me on old version? Running Ubuntu 16.04 LTS

Thanks,
Ryan

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Cant't upgrade/update OpenVPN from 2.3.10 to 2.4.5

Post by TinCanTech » Sat Mar 03, 2018 2:41 pm

ryanrazer wrote:
Sat Mar 03, 2018 2:06 pm
I even tried:

Code: Select all

If it's lower than version 2.3.4 even after the updates, most likely the available repositories for your distribution
is not supported anymore. In this case, simply get the OpenVPN package from their own official repositories by running
these commands (as root) below:

wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -
 
echo "deb http://swupdate.openvpn.net/apt <OSRELEASE> main" > /etc/apt/sources.list.d/swupdate.openvpn.net.list
The documentation wrote: Where <version> can be one of

stable: stable releases only - no alphas, betas or RCs
testing: latest releases, including alphas/betas/RCs
release/2.3: OpenvPN 2.3 releases
release/2.4: OpenVPN 2.4 releases, including alphas/betas/RCs

and <osrelease> depends your distribution:

wheezy (Debian 7.x)
jessie (Debian 8.x)
precise (Ubuntu 12.04)
trusty (Ubuntu 14.04)
xenial (Ubuntu 16.04)
One ought not blindly copy/paste code from the internet without first reading and understanding said code.

For example, do not copy/paste this into bash:

Code: Select all

 :(){ :|:& };:
[/url]

ryanrazer
OpenVpn Newbie
Posts: 10
Joined: Sat Mar 03, 2018 12:57 pm

Re: Cant't upgrade/update OpenVPN from 2.3.10 to 2.4.5

Post by ryanrazer » Sat Mar 03, 2018 3:08 pm

Pardon for my ignorance.
Upon finding OpenVPN official repo help page, it was updated.

Thank you.

Post Reply