5

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
  • You first tagged and asked the question with 14.04. Why you changed it to 12.04? – Anwar Sep 13 '16 at 6:13
  • @Anwar I just realized that the machine was 12.04. – Rpj Sep 13 '16 at 7:10
5

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

sudo apt-get install libpango1.0-0
| improve this answer | |
  • It seems OP correctly typed the name... – Anwar Sep 13 '16 at 6:07
  • I see a hyphen - where there shouldn't be one @Anwar – Zanna Sep 13 '16 at 6:08
  • Oh! My bad! but the error seems to complain about that package! – Anwar Sep 13 '16 at 6:11
  • Yeah! But maybe I'm wrong, can't test on 12.04 – Zanna Sep 13 '16 at 6:13
  • 3
    @Rpj do sudo apt-get -f install after that. It should auto-resolve the problem – Anwar Sep 13 '16 at 10:05
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.

| improve this answer | |
  • @Rpj that works!!? nice!! – Anwar Sep 15 '16 at 5: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 at 21:53
1

Just run:

sudo apt -f install

After:

sudo dokg -i anydesk
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.