之前一直使用TeamViewer,但最近商业检测越来越频繁,于是转了向日葵,安装时libwebkit过高,导致安装失败.
因向向日葵提供的libwebkit包是4.0-37了,而向日葵依赖的是3.0.0,故需要手动作下调整.
错误信息如下:
(Reading database ... 303666 files and directories currently installed.)
Preparing to unpack SunloginClient-10.1.1.38139_amd64.deb.1 ...
sunloginclient: no process found
Sunlogin stopped
Removed /etc/systemd/system/multi-user.target.wants/runsunloginclient.service.
Unpacking sunloginclient (10.1.1.38139) over (10.1.1.38139) ...
dpkg: dependency problems prevent configuration of sunloginclient:
sunloginclient depends on libwebkitgtk-3.0-0; however:
Package libwebkitgtk-3.0-0 is not installed.
dpkg: error processing package sunloginclient (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
sunloginclient
需要修改sun/DEBIAN/control的配置,直接复制粘贴下面脚本到控制台执行即可
wget https://down.oray.com/sunlogin/linux/SunloginClient-10.1.1.38139_amd64.deb
dpkg-deb -X SunloginClient-10.1.1.38139_amd64.deb sun
dpkg-deb -e SunloginClient-10.1.1.38139_amd64.deb sun/DEBIAN
sed -i 's/libwebkitgtk-3.0-0/libwebkit2gtk-4.0-37/g' sun/DEBIAN/control
dpkg-deb -b SunloginClient
sudo dpkg -i SunloginClient.deb