Note that you are using Ubuntu 16.10, which is Yakkety. The OpenVPN repos only support up to 16.04, Xenial. If you do an apt-get install initscripts
command, the result offers some assitance:
However the following packages replace it:
util-linux:i386 util-linux sysvinit-utils:i386 sysvinit-utils
The problem here is that the openvpn package doesn't know that its dependencies don't make any sense in Yakkety. So for now, either
- compile from source to get the latest version of OpenVPN,
- wait until they update their repo, or
- install the older OpenVPN available in the Yakkety repos.
Advanced
If you want to modify the package for Yakkety, you might try the following. I cannot guarantee this will work well for you and will not cause problems. I got help from here.
One problem that I think comes from this install method is that the GUI network manager cannot add a VPN connection after I install OpenVPN using this method. Command line VPN connections work just fine. Stick with the Ubuntu packaged version for easiest VPNing.
Get the deb file, unpack the contents and control:
mkdir /tmp/debwork
cd /tmp/debwork
apt-get download openvpn
dpkg-deb -x openvpn_2.4.0-xenial0_amd64.deb openvpn
dpkg-deb --control openvpn_2.4.0-xenial0_amd64.deb openvpn/DEBIAN
Now, edit the control file:
nano DEBIAN/control
Change:
Version: 2.4.0-xenial0
To
Version: 2.4.0-yakkety0
And change:
Depends: debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.15), liblzo2-2, libpam0g (>= 0.99.7.1), libpkcs11-helper1 (>= 1.11), libssl1.0.0 (>= 1.0.2~beta3), libsystemd0, init-system-helpers (>= 1.18~), initscripts (>= 2.88dsf-13.3), iproute2
To:
Depends: debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.15), liblzo2-2, libpam0g (>= 0.99.7.1), libpkcs11-helper1 (>= 1.11), libssl1.0.0 (>= 1.0.2~beta3), libsystemd0, init-system-helpers (>= 1.18~), sysvinit-utils (>= 2.88dsf-13.3), util-linux, iproute2
Now build the new package:
dpkg -b openvpn openvpn_2.4.0-yakkety0_amd64.deb
and install:
sudo dpkg -i openvpn_2.4.0-yakkety0_amd64.deb