I was struggling setting up a new VPN to connect to my servers at the office as vpnsetup.sh was failing
# ./vpnsetup.sh Installing Cisco AnyConnect Secure Mobility Client... Extracting installation files to /tmp/vpn.0Zgby3/vpninst625702875.tgz... Unarchiving installation files to /tmp/vpn.0Zgby3... Starting Cisco AnyConnect Secure Mobility Client Agent... Failed to start vpnagentd.service: Unit vpnagentd.service not found.
I found a bunch of articles on the internet saying that this was due to missing libraries so started with the first batch of recommendations…
# apt install -y lib32z1 lib32ncurses5
This still didn’t work.
So I tried the next one, which was to also install the network-manager-openconnect package and reload the daemons
# apt install network-manager-openconnect # systemctl daemon-reload
# ./vpnsetup.sh Installing Cisco AnyConnect Secure Mobility Client... Removing previous installation... mv: cannot stat '/opt/cisco/vpn/*.log': No such file or directory Extracting installation files to /tmp/vpn.yUyv15/vpninst922924093.tgz... Unarchiving installation files to /tmp/vpn.yUyv15... Starting Cisco AnyConnect Secure Mobility Client Agent... Warning: vpnagentd.service changed on disk. Run 'systemctl daemon-reload' to reload units. Done!