7

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,049
  • 6
  • 23
  • 21

3 Answers3

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
  • 75,875
  • 31
  • 191
  • 309
  • @Rpj that works!!? nice!! – Anwar Sep 15 '16 at 05:52
  • Hooray! This also works for installing the current minecraft-launcher.deb downloaded from minecraft.net, on Ubuntu focal 20.04 (development release). However I needed to do the reverse transformation (.deb depends on libpango1.0-0, I needed to change to libpango-1.0-0.) – Jonathan Hartley Mar 31 '20 at 21:53
6

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

sudo apt-get install libpango1.0-0
Zanna
  • 69,223
  • 56
  • 216
  • 327
  • It seems OP correctly typed the name... – Anwar Sep 13 '16 at 06:07
  • I see a hyphen `-` where there shouldn't be one @Anwar – Zanna Sep 13 '16 at 06:08
  • Oh! My bad! but the error seems to complain about that package! – Anwar Sep 13 '16 at 06:11
  • Yeah! But maybe I'm wrong, can't test on 12.04 – Zanna Sep 13 '16 at 06:13
  • Looks like the package has different name in 12.04 and 14.04. Also see OPs edit http://packages.ubuntu.com/precise/libpango1.0-0 and http://packages.ubuntu.com/trusty/libpango-1.0-0 – Anwar Sep 13 '16 at 06:14
  • Hmm, can't test that either.... actually n my system apt doesn't care about the hyphen, although the correct name is libpango1.0-0 (and it doesn't find libpango) so I guess I'm wrong :( @Anwar – Zanna Sep 13 '16 at 06:16
  • No. The name is correct for 12.04 (precise). Check the link. – Anwar Sep 13 '16 at 06:24
  • Yes, I checked, it was 12.04 when I answered it... but I think apt may resolve the hyphen so it doesn't matter... Waiting for OP to confirm either way! @Anwar – Zanna Sep 13 '16 at 06:27
  • sudo apt-get install libpango1.0-0 - this works as expected, but forticlient-sslvpn is looking for libpango-1.0.0. What should I do? – Rpj Sep 13 '16 at 07:15
  • it's the same package with a different name, did you try installing the forticlient deb again @Rpj ? if you did, I am not sure how to fix it (without some dirty hacking that I wouldn't recommend) – Zanna Sep 13 '16 at 07:17
  • Yes I did and it didn't help. Let me know what else I can try to get this working – Rpj Sep 13 '16 at 09:14
  • 4
    @Rpj do `sudo apt-get -f install` after that. It should auto-resolve the problem – Anwar Sep 13 '16 at 10:05
  • No it didn't, I already did that and it didn't help – Rpj Sep 13 '16 at 11:20
  • @Rpj could you try `find /usr/lib -type f -name "libpango*"` and edit your question with the output? We might be able to fool forticlient with a symlink... also where did you download the deb? – Zanna Sep 13 '16 at 11:22
2

Just run:

sudo apt -f install

After:

sudo dokg -i anydesk
Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
TiGo
  • 121
  • 3