Skip to content

Instantly share code, notes, and snippets.

@Mariyo
Last active March 15, 2025 18:03
Show Gist options
  • Save Mariyo/4b270c1938fa0f2296acc1bf32ed2c20 to your computer and use it in GitHub Desktop.
Save Mariyo/4b270c1938fa0f2296acc1bf32ed2c20 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Downloading packages
wget http://ftp.it.debian.org/debian/pool/main/g/gconf/gconf2_3.2.6-8_amd64.deb
wget http://ftp.it.debian.org/debian/pool/main/g/gconf/libgconf-2-4_3.2.6-8_amd64.deb
wget http://ftp.it.debian.org/debian/pool/main/g/gconf/gconf2-common_3.2.6-8_all.deb
wget http://ftp.it.debian.org/debian/pool/main/g/gconf/gconf-service_3.2.6-8_amd64.deb
wget http://ftp.it.debian.org/debian/pool/main/o/openldap/libldap-2.5-0_2.5.13%2bdfsg-5_amd64.deb
wget https://security.ubuntu.com/ubuntu/pool/universe/liba/libappindicator/libappindicator1_12.10.1+20.10.20200706.1-0ubuntu1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/libd/libdbusmenu/libdbusmenu-gtk4_16.04.1+18.10.20180917-0ubuntu8_amd64.deb
# Configuring the libgconf-2-4 package
sudo dpkg --configure -a
# Installing the libldap-2.5-0 package
#sudo apt install libldap-2.5-0
# missing libnss3-tools
sudo apt install libnss3-tools
# Installing the gconf packages
sudo dpkg -i libldap-2.5-0_2.5.13+dfsg-5_amd64.deb
sudo dpkg -i libdbusmenu-gtk4_16.04.1+18.10.20180917-0ubuntu8_amd64.deb
sudo dpkg -i libgconf-2-4_3.2.6-8_amd64.deb
sudo dpkg -i gconf2-common_3.2.6-8_all.deb
sudo dpkg -i gconf-service_3.2.6-8_amd64.deb
sudo dpkg -i gconf2_3.2.6-8_amd64.deb
sudo dpkg -i libappindicator1_12.10.1+20.10.20200706.1-0ubuntu1_amd64.deb
# Resolving any potential dependency issues
sudo apt -f install
@colakalii
Copy link

This worked for me also. Installed it successfully. Forti. Come on man...

@junejie
Copy link

junejie commented Feb 21, 2025

confirm it works

@Mac85
Copy link

Mac85 commented Mar 4, 2025

Which version of FortiClient did you use the fix with? I am using FortiClient 7.4.0.1636, but when I enter the credentials, it stays in status: connecting for a while and then never connects.

@Mariyo
Copy link
Author

Mariyo commented Mar 5, 2025

Hi @Mac85, my current Forticlient version is 7.0.13.0376

@Mac85
Copy link

Mac85 commented Mar 6, 2025

Could you please tell me where i can download this version?

@Mariyo
Copy link
Author

Mariyo commented Mar 6, 2025

Unfortunately, I use company provided version which I can't share with you

@Mac85
Copy link

Mac85 commented Mar 6, 2025

I understand, it is e custom version. Unfortunately your fix doesn’t work for me with last version of forticlient.

@Mariyo
Copy link
Author

Mariyo commented Mar 6, 2025

@Mac85 if you run Forticlient app, it means it worked (the purpose of this script). If you struggle with connection, its different problem and I propose you to contact admin of host you want to connect to.

@Mac85
Copy link

Mac85 commented Mar 6, 2025

@Mariyo Yes the app started correctly even without running your script. It only gives me problems when I try to connect

@skcna2
Copy link

skcna2 commented Mar 15, 2025

thanks for sharing 👍 unfortunately same here stucks on coonnecting, i use the latest VPN forticlient version from their web
version: 7.4.0.1636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment