9

Unable to resolve dependency for libpango-1.0-0 in 12.04. This is needed while installing 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

Install 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

EDIT1:

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
Rpj
  • 3,129

3 Answers3

8

The name of the package is incorrect. It should be:

sudo apt-get install libpango1.0-0
Zanna
  • 72,312
7

The deb file you downloaded is from https://hadler.me/linux/forticlient-sslvpn-deb-packages/. The package maintainer there tried to build .deb files for easier installation of Forticlient–SSLVPN which comes with a .tar.gz package.

But I think, the package maintainer wrongly included libpango-1.0-0 in the dependency list in packages for releases older than 15.04. libpango-1.0-0 pulls libpango1.0-0 package in recent releases, but in 12.04 there is no libpango-1.0-0. You need to install libpango1.0-0 for that.

The easiest solution I think (I haven't tested this) to decompress and re-build the deb again. First remove the package using

sudo dpkg -P forticlient-sslvpn

Then proceed with these steps:

Install dpkg-dev package

sudo apt-get install dpkg-dev

Make a directory to extract

mkdir forticlient-sslvpn

Extract the deb file to it

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

Go to the forticlient-sslvpn/DEBIAN folder and open control file. Change the libpango-1.0-0 in the line Depends: to libpango1.0-0. Save the file.

Return back out of the forticlient-sslvpn directory.

Use this command to build the package again.

 dpkg-deb -b forticlient-sslvpn

This should create a deb file named forticlient-sslvpn.deb. Install it with

 sudo dpkg -i forticlient-sslvpn.deb

Then install any missing dependencies using

 sudo apt-get -f install

Hope that helps.

Anwar
  • 77,855
2

Just run:

sudo apt -f install

After:

sudo dokg -i anydesk
Eliah Kagan
  • 119,640
TiGo
  • 131