我使用 Ubuntu 22.04.1 LTS 并且想要安装 ZedFree 来打开加密的 ZED 档案。
我刚刚从https://www.zedencrypt.com/download
下载完成后,我运行:
sudo dpkg -i ZEDFREE-2022.2.Ubuntu18.04.amd64.deb
失败并出现以下错误:
dpkg: dependency problems prevent configuration of zed-free:
zed-free depends on libqt5xml5; however:
Package libqt5xml5 is not installed.
zed-free depends on libldap-2.4-2; however:
Package libldap-2.4-2 is not installed.
dpkg: error processing package zed-free (--install):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
zed-free
我怎样才能解决这个问题?
答案1
正如提到的libldap-2.4.so.2:无法打开共享对象文件,Ubuntu 22.04 没有 libldap-2.4-2。
要解决该问题,您必须先使用以下命令修复损坏的安装:
sudo apt --fix-broken install
这将删除 zed-free 包。
libldap-2.4-2 需要安装一些依赖项:
sudo apt install libgssapi3-heimdal
这可能会触发以下附加软件包的安装:libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal
然后下载libldap-2.4-2包这里并使用以下命令进行安装:
sudo dpkg -i libldap-2.4-2_2.4.49+dfsg-2ubuntu1.9_amd64.deb
然后使用以下命令安装最后一个缺失的依赖项:
sudo apt-get install libqt5xml5
最后,你可以使用以下命令安装 ZedFree:
sudo dpkg -i ZEDFREE-2022.2.Ubuntu18.04.amd64.deb