Skip to content

Instantly share code, notes, and snippets.

@thiagozs
Created June 19, 2024 18:55
Show Gist options
  • Save thiagozs/4d8c6e090a027fae3dd883163615f91e to your computer and use it in GitHub Desktop.
Save thiagozs/4d8c6e090a027fae3dd883163615f91e to your computer and use it in GitHub Desktop.
AWSVPNClient Fixes on ubuntu 24.04

Steps

Download

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.13_amd64.deb

Edit files and add Env vars

sudo vim /etc/systemd/system/awsvpnclient.service

Put the Enviroment line

[Service]
Type=simple
ExecStart=/opt/awsvpnclient/Service/ACVC.GTK.Service
Restart=always
RestartSec=1s
User=root
Environment=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

[Install]
WantedBy=multi-user.target

Create a simbolic link

cd /opt/awsvpnclient 

/opt/awsvpnclient  …
➜ sudo ln -s AWS\ VPN\ Client awsvpnclient  

Edit the menu

find / -name 'awsvpnclient.desktop' 2>&1 | grep -v 'Permissão negada'

/home/thiagozs/.local/share/applications/awsvpnclient.desktop
/usr/share/applications/awsvpnclient.desktop

Put this content here.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=AWS VPN Client
Comment=AWS VPN Client
Exec=/opt/awsvpnclient/awsvpnclient %U
Path=/opt/awsvpnclient
Icon=acvc-64
Terminal=false
Categories=Network;VPN;
Keywords=vpn;aws;
@kumaran8888
Copy link

kumaran8888 commented Jul 31, 2024

one more setup --- export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

nano ~/.bashrc

Thanks its working fine for me

@amunro-tsl
Copy link

Works on Mint 22 (ubuntu 24.04 based). Thanks @thiagozs !

@spicysomtam
Copy link

So @thiagozs changes worked for me on my main Linux Mint 22 desktop. However for another desktop, which I access remotly using NoMachine, it did not work for me (also tried @kumaran8888 suggestion). This was the fix for this; embedding the env var in the desktop file. Basically the env var was not picked up from ~/.bashrc, ~/.profile, /etc/profile, etc:

$ cat /usr/share/applications/awsvpnclient.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=AWS VPN Client
Comment=AWS VPN Client
Exec=env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /opt/awsvpnclient/awsvpnclient %u
Path=/opt/awsvpnclient
Icon=acvc-64.png
Terminal=false
Categories=Network;VPN;
Keywords=vpn;aws;

@thiagozs
Copy link
Author

That's nice! Thanks a lot for all.

@sortafreel
Copy link

Thank you a lot, helped on Linux Mint 22 also 🙌

@dmirandaa
Copy link

Thank you, worked on Ubuntu 24.04 @spicysomtam solution.

@syedzahed
Copy link

syedzahed commented Aug 22, 2024

Thanks @spicysomtam. That helped (ubuntu 24.04)

@dwilches
Copy link

Thanks! It worked for me with Ubuntu 24.04 as well. I had to use the env command in the desktop file, and do %u instead of %U, but other than that, it worked perfectly.

@ferchor2003
Copy link

ferchor2003 commented Sep 6, 2024

Thanks! The solution worked as described.

However after a recent apt upgrade the VPN suddenly stopped working. I did not keep a log of the updated packages though, but I see that the client shows Version 3.15.1
The app launches, but after hitting the "Connect" button a popup window shows with "Unknown error ocurred. Try Again".
Any ideas on what to look for?

@ferchor2003
Copy link

Thanks! The solution worked as described.

However after a recent apt upgrade the VPN suddenly stopped working. I did not keep a log of the updated packages though, but I see that the client shows Version 3.15.1 The app launches, but after hitting the "Connect" button a popup window shows with "Unknown error ocurred. Try Again". Any ideas on what to look for?

I found that after going back to 3.15.0 it works again!
You can download older versions at https://docs.aws.amazon.com/vpn/latest/clientvpn-user/client-vpn-connect-linux-release-notes.html

@jannel-cloubi
Copy link

This worked for me...I have the latest AWS VPN version and Ubuntu 24.04.1 LTS

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

@varfrog
Copy link

varfrog commented Sep 10, 2024

We should appeal to AWS to make the VPN client supported on Ubuntu 24. I have filled out a support ticket. In the reply they said they are working on it but they did not specify an ETA. I did not understand whether that meant "actively working on it", or just "it's it's the backlog" kind of progress. Has anyone else conversed with AWS regarding this?

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