我一直在尝试安装Forticlient VPN在 LMDE 5 (Debian Bullseye) 上,它在 libappindicator1 的依赖项上失败。
阅读另一篇文章显然是根据我的理解,Mint 删除了该库,所以我继续安装它。
sudo apt-get install libappindicator1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libayatana-appindicator1' instead of 'libappindicator1'
The following additional packages will be installed:
libayatana-indicator7 libdbusmenu-gtk4
The following NEW packages will be installed:
libayatana-appindicator1 libayatana-indicator7 libdbusmenu-gtk4
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/222 kB of archives.
After this operation, 418 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libayatana-indicator7:amd64.
(Reading database ... 272995 files and directories currently installed.)
Preparing to unpack .../libayatana-indicator7_0.8.4-1+deb11u2_amd64.deb ...
Unpacking libayatana-indicator7:amd64 (0.8.4-1+deb11u2) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Preparing to unpack .../libdbusmenu-gtk4_18.10.20180917~bzr492+repack1-2_amd64.deb ...
Unpacking libdbusmenu-gtk4:amd64 (18.10.20180917~bzr492+repack1-2) ...
Selecting previously unselected package libayatana-appindicator1.
Preparing to unpack .../libayatana-appindicator1_0.5.5-2+deb11u2_amd64.deb ...
Unpacking libayatana-appindicator1 (0.5.5-2+deb11u2) ...
Setting up libayatana-indicator7:amd64 (0.8.4-1+deb11u2) ...
Setting up libdbusmenu-gtk4:amd64 (18.10.20180917~bzr492+repack1-2) ...
Setting up libayatana-appindicator1 (0.5.5-2+deb11u2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
好的。
现在我尝试安装 Foticlient VPN (7.0.0.0018):
sudo dpkg -i Downloads/forticlient_vpn_7.0.0.0018_amd64.deb
Selecting previously unselected package forticlient.
(Reading database ... 273013 files and directories currently installed.)
Preparing to unpack .../forticlient_vpn_7.0.0.0018_amd64.deb ...
Unpacking forticlient (7.0.0.0018) ...
dpkg: dependency problems prevent configuration of forticlient:
forticlient depends on libappindicator1 (>> 0); however:
Package libappindicator1 is not installed.
Version of libappindicator1 on system, provided by libayatana-appindicator1:amd64, is <none>.
dpkg: error processing package forticlient (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.69) ...
Errors were encountered while processing:
forticlient
不知道从这里去哪里。这是一个全新安装,继我第一次尝试安装 libindicator7 的另一篇文章之后下载包,同样对于libappindicator1,它建议使用存储库上已有的包,所以我卸载了所有内容并使用命令行通过 apt-get 安装。同样的错误。
即使存在此错误,Forticlient VPN 仍然可以安装并运行,但会让您的库变得混乱,并且:
sudo apt-get install -f
强制您卸载 Forticlient。有什么线索吗?
[由于这里的声誉<300,无法添加像样的标签,抱歉]
答案1
尝试部分重新打包 forticlient VPN 并更改其依赖项。启动 shell 并导航到包含 .deb 的目录,然后执行以下操作:
mkdir -pv forticlient && cp -v forticlient_vpn*.deb forticlient && cd forticlient # Create a nice clean workspace
ar vx forticlient_vpn*.deb && tar vxf control.tar.?z # Unpack the deb
# Now, edit the dependencies in control to use libayatana-appindicator1 instead of libappindicator1
tar c {post,pre}{inst,rm} md5sums control | xz -z > control.tar.xz && ar rcs forticlient_vpn_mod.deb debian-binary control.tar.xz data.tar.?z # Repack the deb
然后,forticlient_vpm_mod.deb 即可安装。