On Sun, 19 Jun 2022 18:10:14 -0400, Nathan Stratton Treadway
<natha...@ontko.com> wrote:

>> I am not enough into Linux to get anything useful from this...
>> Hopefully you can.
>
>Well, I don't know how much difference it will make for your overall
>project, but this output shows that you are still running an old
>("xenial") version of OpenVPN... and that package puts .service files
>under both 
>  /lib/ 
>and 
>  /usr/lib/
>
>So I think that explains the results you saw from your "find" commands.
>
>I'm guessing you used a locally-build package for 2.4.7 under Xenial
>(since the Ubuntu repo for Xenial has version 2.3.10)... but the naming
>conventions clash ("-xenial0" is greater than "-1ubuntu" in the package
>version-string sort order) and so the system didn't automatically move
>to the Focal-provided package when you upgraded.

Originally I used OpenVPN since around 2014 on RaspberryPi to access my home
LAN. I did not have an Ubuntu server back then.
Then in 2016 I built the Ubuntu server to handle a lot of other things too, like
subversion and such, and I also installed OpenVPN there.
But I no longer remember *how* I installed it, it might have been done using
some apt repository fiddling so I am now on the wrong branch....

>Anyway, unless you have a specific reason to stick with the -xenial
>package, you could go ahead and manually upgrade to the
>2.4.7-1ubuntu2.20.04.4 version of the package... at which point all your
>.service files should appear together under /usr/lib/ (and from that
>point your system should automaticly offer to update to newer versions
>of the package within Focal, if any someday get released).

What would be the proper way to do the manual upgrade?

Is there a way to find out from where the openvpn I do have is coming and what
is blocking it from being upgraded via apt in that case?

Checking version gives this:

$ openvpn --version
OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11]
[MH/PKTINFO] [AEAD] built on Feb 19 2019
library versions: OpenSSL 1.0.2n  7 Dec 2017, LZO 2.10
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <sa...@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes
....
with_gnu_ld=yes with_mem_check=no with_plugindir='${prefix}/lib/openvpn'
with_sysroot=no

I tried this to see more about openvpn on my system:

sudo apt list --installed | grep openvpn
openvpn/now 2.4.7-xenial0 amd64 [installed,local]

apt policy openvpn
openvpn:
  Installed: 2.4.7-xenial0
  Candidate: 2.4.7-xenial0
  Version table:
 *** 2.4.7-xenial0 100
        100 /var/lib/dpkg/status
     2.4.7-1ubuntu2.20.04.4 500
        500 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64
Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     2.4.7-1ubuntu2 500
        500 http://se.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

Can I just uninstall openvpn and then install via apt to get the latest?
Or will that throw out any custom config I have done too?

Currently over the summer I am not at my home LAN but I connect there via
OpenVPN on my router, so presumably I would have to wait until I am back home so
I have direct access to the server, right?
(Since I would lose connection once the server OpenVPN goes down).


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to