Problems with the VPN client on macOS
the Cisco AnyConnect Client cannot be installed or reinstalled
There are often problems under Mac OS on Apple devices when upgrading the Cisco VPN software. Therefore, the following instructions for clean uninstallation.
1) If you want to uninstall Cisco VPN AnyConnect client in macOS, select automatic uninstall from Applications → Cisco → Uninstall AnyConnect and follow the uninstall instructions.
Please do not attempt to uninstall AnyConnect by simply manually deleting it from the Applications → Cisco directory, as this will result in an incomplete uninstall.
2) If a new installation of the Cisco VPN AnyConnect client fails, an incorrect uninstallation of an old version is often the cause.
In this case, select Programs → Utilities → Terminal, type the following command, and then press Enter:
sudo /opt/cisco/anyconnect/bin/anyconnect_uninstall.sh
You will then be prompted in Terminal to enter your user password for macOS. Your input will NOT be displayed while you are typing, nor will any cursor movement be visible; you must then confirm your input by pressing <Enter>.
Afterwards, try installing Cisco-VPN-AnyConnect-Client again.
If this does not solve the problem, type the following commands in the terminal, each confirmed by <Enter>:
sudo rm -R /opt/cisco/anyconnect
sudo rm -R /Applications/Cisco
sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn
You will again be prompted for your macOS user password.
Then try installing AnyConnect again.
Translated with www.DeepL.com/Translator (free version)