Upgrade OpenVPN Server for 2.3.10 to latest version

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
jhaines
OpenVpn Newbie
Posts: 3
Joined: Mon Feb 19, 2018 8:23 am

Upgrade OpenVPN Server for 2.3.10 to latest version

Post by jhaines » Mon Feb 19, 2018 8:52 am

Hi,

I am trying to upgrade my OpenVPN Server for 2.3.10 to a newer version on Ubuntu 16.04 but having issues does anyone know if there is a know issue and the commands needed I have done the normal apt-get update and upgrade?

Regards
Julian

jhaines
OpenVpn Newbie
Posts: 3
Joined: Mon Feb 19, 2018 8:23 am

Re: Upgrade OpenVPN Server for 2.3.10 to latest version

Post by jhaines » Mon Feb 19, 2018 9:00 am

Hi,

I found out how to do it and used the commands below to install the stable version on Xenial

sudo -s
wget -O - https://swupdate.openvpn.net/repos/repo ... pg|apt-key add -
echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
apt-get update && apt-get install openvpn

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

Re: Upgrade OpenVPN Server for 2.3.10 to latest version

Post by ryanrazer » Sat Mar 03, 2018 1:07 pm

Would you know how to apply this method to Ubuntu version?

I'm sorry but i'm new to Linux. I downloaded proper version for ubuntu from OpenVPN site
- http://swupdate.openvpn.org/as/openvpn- ... amd_64.deb.
When file is downloaded i used: dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb, as written in this manual
https://docs.openvpn.net/configuration/ ... r-updated/.

The terminal says like it installed:

sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
(Reading database ... 259665 files and directories currently installed.)
Preparing to unpack openvpn-as-2.5-Ubuntu16.amd_64.deb ...
Upgrade detected (debian)...
Unpacking openvpn-as (2.5-Ubuntu16) over (2.5-Ubuntu16) ...
Setting up openvpn-as (2.5-Ubuntu16) ...
Backing up configuration and DB files to /usr/local/openvpn_as/etc/backup prior to update.


Looks fine but the i do:
apt-get update && apt-get install openvpn
Hit:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://si.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://si.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (316 kB/s)
Reading package lists... Done
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.


Wth, i downloaded version 2.5 and it says its already on latest 2.3 version... -_-

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

Re: Upgrade OpenVPN Server for 2.3.10 to latest version

Post by ryanrazer » Sat Mar 03, 2018 1:14 pm

Would you know how to apply this method to Ubuntu as well? Sorry I'm new to Linux.

What i did was follow this article: https://docs.openvpn.net/configuration/ ... r-updated/

I downloaded latest version: http://swupdate.openvpn.org/as/openvpn- ... amd_64.deb

Then i went to install using:
sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
(Reading database ... 259665 files and directories currently installed.)
Preparing to unpack openvpn-as-2.5-Ubuntu16.amd_64.deb ...
Upgrade detected (debian)...
Unpacking openvpn-as (2.5-Ubuntu16) over (2.5-Ubuntu16) ...
Setting up openvpn-as (2.5-Ubuntu16) ...
Backing up configuration and DB files to /usr/local/openvpn_as/etc/backup prior to update.


Looks like it was successfull. I did the sudo apt-get update && apt-get upgrade && apt-get dist-upgrade
Works fine, 0 updates available. Then i rebooted my server and restarted OpenVPN.
When i do:
openvpn --version
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


and openvpn update gives me:
apt-get update && apt-get install openvpn
Hit:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://si.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://si.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (316 kB/s)
Reading package lists... Done
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.



I downloaded version 2.5 and it says already on newest version 2.3.... WTH?!
Anyone any ideas?
Thanks,
Ryan

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

Re: Upgrade OpenVPN Server for 2.3.10 to latest version

Post by TinCanTech » Sat Mar 03, 2018 1:23 pm

ryanrazer wrote:
Sat Mar 03, 2018 1:14 pm
sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
That is Openvpn Access Server not OpenVPN.

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

Re: Upgrade OpenVPN Server for 2.3.10 to latest version

Post by ryanrazer » Sat Mar 03, 2018 1:42 pm

TinCanTech wrote:
Sat Mar 03, 2018 1:23 pm
ryanrazer wrote:
Sat Mar 03, 2018 1:14 pm
sudo dpkg -i openvpn-as-2.5-Ubuntu16.amd_64.deb
That is Openvpn Access Server not OpenVPN.
Shoot, thank you!

Post Reply