无法删除或安装 kerio-control-vpnclient

无法删除或安装 kerio-control-vpnclient

我之前安装的“kerio-control-vpnclient”版本较低,但当我下载并尝试升级到较新版本(9.0 到 9.2)时,我遇到了这个问题。我现在无法安装或删除它!这是 sudo dpkg --configure kerio-control-vpnclient 的输出

    Setting up kerio-control-vpnclient (9.2.7.2921-1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Failed to start kerio-kvc.service: Unit kerio-kvc.service is not loaded properly: Exec format error.
See system logs and 'systemctl status kerio-kvc.service' for details.
invoke-rc.d: initscript kerio-kvc, action "start" failed.
● kerio-kvc.service - Kerio Control VPN Client
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)

Oct 04 22:03:24 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:33 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:33 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:33 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:53 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:53 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:03:53 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:05:54 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:05:54 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
Oct 04 22:05:54 agha-Satellite-P755 systemd[1]: /lib/systemd/system/kerio-kvc.service:13: Executable path is not absolute: pkill -SIGHUP kvpncsvc
dpkg: error processing package kerio-control-vpnclient (--configure):
 installed kerio-control-vpnclient package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 kerio-control-vpnclient

这是 apt-get install -f 的输出

E: The package kerio-control-vpnclient needs to be reinstalled, but I can't find an archive for it.

答案1

这是我第一次运行来pkill查找我的系统的路径pkill,然后编辑你的并使用的/lib/systemd/system/kerio-kvc.service完整路径。ExecReloadpkill

最后它看起来应该是这样的:

[Unit]
Description=Kerio Control VPN Client
After=network.target
[Service]
Type=forking
Restart=always
RestartSec=5
ExecStart=/usr/sbin/kvpncsvc /var/lib/kerio-control-vpn 2>&1 | logger -p daemon.err -t kerio-control-vpnclient 2>/dev/null
ExecReload=/usr/bin/pkill -SIGHUP kvpncsvc
[Install]
Alias=kerio-vpn
Alias=kerio-control-vpn
Alias=kerio-control-vpnclient
WantedBy=multi-user.target

相关内容