On Mon, Jun 20, 2022 at 08:51:47 +0200, Bo Berglund wrote: > 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....
The top entry in the /usr/share/doc/openvpn/changelog.Debian.gz should give you at least a little information about the specific build of the currently-installed version of the package... > 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? > [...] > 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 This "apt policy" shows that you have the standard Ubuntu repos in your apt.sources list, and thus the standard package is available to install. (It doesn't get installed by default because the dpkg version sort algorithm treats "2.4.7-xenial0" as newer than the version "2.4.7-1ubuntu2.20.04.4" and doesn't want to downgrade the package.) But I think you would be able to manually force installation of the stock Focal package using the command "apt install openvpn/focal" to force selection of the version of the package from the specified distro. (Or alternatively "apt install openvpn=2.4.7-1ubuntu2.20.04.4" to give an explicit version string.) > 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? ("remove" -- as opposed to "purge" -- will leave all custom config files, so they should be there waiting when you install the package again. But I'd say you might as well try the "install .../focal" approach first and see if you can do it all in one step.) > 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). Yeah -- in that case it's probably best to wait... (If the package upgrade works as expected, OpenVPN would automatically start back up afterwards, so you'd presumably just see a slight pause in your ssh session and then resume normal operation... but if anything goes wrong with the upgrade, you'd be in trouble....) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - natha...@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users