Struggling to install Azure DevOps deployment agent on Linux machine

Viewed 1005

So I'm trying to install an Azure DevOps deployment agent on Linux machines (Ubuntu 20.04 Focal Fossa). I tried to do so by executing the the code snippet, that the Azure DevOps site generates. However I keep getting this annoying error message pointing to a missing libssl library:

No usable version of the libssl was found

There is a YouTube video (How to solve the "No usable version f the libssl was found" in GitHub Actions and Azure Pipelines) explaining how to get around this issue. Basically the idea is to either upgrade to the latest .NET Core version (I assume the agent uses .NET Core) or to downgrade the incompatible libssl library.

However none of that worked for me. First of all, the .NET Core Framework doesn't seem to be installed after the installation of the agent has errored out, maybe there was just some checking beforehand, fine whatever. But after I installed the latest .NET Core runtime, the same error pops up.

Secondly, I'm unable to locate the suggested older version of the libssl-dev package (looking for version 1.0.x). On pkgs.org there are no entries for version 1.0.x for Ubuntu, same on packages.ubuntu.com. And when I type in apt list -a libssl-dev I also only get version 1.1.x.

Why is this so difficult? Has anyone tried using the 1.0.x version of libssl-dev and did it work? And how did you get a hold of it?

Any suggestion greatly appreciated!

2 Answers

Just try this. The problem is linked with OpenSSL 3.0, but you can add OpenSSL 1.1

wget https://www.openssl.org/source/openssl-1.1.1o.tar.gz
cd openssl-1.1.1o
./config

I'm running into the same problem.

According to the documentation,

The agent is based on .NET Core 3.1

And looking at the file structure, the agent seems to be a self contained .net application. So I'm quite sure that installing another version of .net is just useless in that case.

[edit] Finally in my case it was not working because I was using the latest 22.04 LTS. According to the documentation, only .net 6 is supported on this one. As the self contained build agent is running a .net 3.1 behind the scenes, I conformed to the latest Ubuntu LTS version with .net core 3.1 support which is 20.04.

Are you sure of your version of ubuntu @DanDan?

Related