无法解析 12.04 版中 libpango-1.0-0 的依赖关系

无法解析 12.04 版中 libpango-1.0-0 的依赖关系

无法解析 12.04 中的 libpango-1.0-0 依赖项。这是安装 forticlient-sslvpn 时需要的

sudo dpkg -i forticlient-sslvpn_4.4.2312-1_amd64.deb 
Selecting previously unselected package forticlient-sslvpn.
(Reading database ... 309369 files and directories currently installed.)
Unpacking forticlient-sslvpn (from forticlient-sslvpn_4.4.2312-1_amd64.deb) ...
dpkg: dependency problems prevent configuration of forticlient-sslvpn:
 forticlient-sslvpn depends on libpango-1.0-0 (>= 1.14.0); however:
  Package libpango-1.0-0 is not installed.
dpkg: error processing forticlient-sslvpn (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
 forticlient-sslvpn

安装 libpango

sudo apt-get install libpango-1.0-0
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Package libpango-1.0-0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libpango-1.0-0' has no installation candidate

编辑1:

find /usr/lib -type f -name "libpango*"
/usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so.0.3000.0
/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.3000.0
/usr/lib/x86_64-linux-gnu/libpangomm-1.4.so.1.0.30
/usr/lib/x86_64-linux-gnu/pango/1.6.0/module-files.d/libpango1.0-0.modules
/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.3000.0
/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.3000.0
/usr/lib/x86_64-linux-gnu/libpangox-1.0.so.0.3000.0
/usr/lib/i386-linux-gnu/libpangoxft-1.0.so.0.3000.0
/usr/lib/i386-linux-gnu/libpangoft2-1.0.so.0.3000.0
/usr/lib/i386-linux-gnu/pango/1.6.0/module-files.d/libpango1.0-0.modules
/usr/lib/i386-linux-gnu/libpango-1.0.so.0.3000.0
/usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0.3000.0
/usr/lib/i386-linux-gnu/libpangox-1.0.so.0.3000.0

答案1

包名称不正确。应该是:

sudo apt-get install libpango1.0-0

答案2

您下载的 deb 文件来自https://hadler.me/linux/forticlient-sslvpn-deb-packages/。软件包维护者尝试构建 .deb 文件,以便于安装Forticlient–SSLVPN它附带一个 .tar.gz 包。

但我认为,软件包维护者错误地将libpango-1.0-015.04 之前的版本的软件包包含在依赖列表中。在最近的版本中libpango-1.0-0拉取libpango1.0-0软件包,但在 12.04没有libpango-1.0-0。您需要安装libpango1.0-0它。

我认为最简单的解决方案(我还没有测试过)是解压并重新构建 deb。首先使用

sudo dpkg -P forticlient-sslvpn

然后继续以下步骤:

安装dpkg-dev

sudo apt-get install dpkg-dev

创建要提取的目录

mkdir forticlient-sslvpn

将 deb 文件解压到其中

dpkg-deb -R forticlient-sslvpn_4.4.2312-1_amd64.deb forticlient-sslvpn/

转到forticlient-sslvpn/DEBIAN文件夹并打开control文件。将libpango-1.0-0行中的更改Depends:libpango1.0-0。保存文件。

返回forticlient-sslvpn目录。

使用此命令再次构建包。

 dpkg-deb -b forticlient-sslvpn

这应该会创建一个名为的 deb 文件forticlient-sslvpn.deb。使用以下命令安装它

 sudo dpkg -i forticlient-sslvpn.deb

然后使用安装任何缺少的依赖项

 sudo apt-get -f install

希望有所帮助。

答案3

赶紧跑:

sudo apt -f install

后:

sudo dokg -i anydesk

相关内容