In our in-premises Azure Devops pipelines we are adding a new agent with Ubuntu Server 22.04.
This agent was an Ubuntu Server 20.04 and was running without hiccups but new requirements came and we had to upgrade to the newer version of Ubuntu 22.04 LTS.
After upgraded, the agent went offline so let’s start the research online.
We found this discusion in github (https://github.com/microsoft/azure-pipelines-agent/issues/3834) and from there we applied the proposal workaround, at least until we upgrade the agent to a newer version supporting OpenSSL 3.0. You can find more details in the link above.
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb && dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb && rm libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf
If you compare this commands with the one described there you will notice that I changed the version …16.. to …17… to make it works.
Also, it’s important to update ‘openssl.cnf’ otherwise we will get authentication errors when building.
Happy Building!