No longer runs on Ubuntu (Specifically on Azure DevOps Managed Agents)
I get the following error when running version 0.7.0 on the ubuntu-latest managed agents in azure.
/home/vsts/work/_temp/gitcrypt_linux: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Note:
gitcrypt_linuxis the linux file from Releases, just renamed to make it clear.
It looks like it is no longer included in the latest ubuntu image. And although it's still there on 20.04, that version is no longer runnable on Azure Managed Agents
I have found a workaround.
Having this task in the pipeline will reinstall libssl1.1 (which contains the needed library)
- bash: wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb && sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb
workingDirectory: $(Agent.TempDirectory)
For anyone doing this not in a pipeline, but has run into the same issue, this running the same script should work for you as well.
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb && sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb
Unfortunately, running sudo apt install libssl1.1 no longer works, my guess is it has been removed from Ubuntu's core package lists.
I'm going to keep this issue around, as this issue is bound to occur for more people as they update their Ubuntu images.
you can try my build https://github.com/maxisam/git-crypt/releases/tag/0.8.1
The 0.8.0 binary links with libcrypto from OpenSSL 3 and should work with the latest version of Ubuntu.