A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
From your description, the Azure Arc installation works successfully on RHEL with the same proxy, but fails on Ubuntu 24.04 with the error: Could not handshake: Error decoding the received TLS packet
This difference between RHEL and Ubuntu is expected in some environments:
- Ubuntu uses APT (GnuTLS) for package management
- RHEL uses different libraries (OpenSSL-based tooling)
Because of this, Ubuntu can be more sensitive to:
- Proxy configuration issues
- TLS inspection behavior
- Certificate trust problems
This strongly indicates that the issue is related to how APT (which uses GnuTLS on Ubuntu) handles HTTPS traffic through your proxy, rather than a problem with Azure Arc itself.
In particular, environments that use TLS inspection, strict cipher requirements, or incomplete proxy configuration can lead to this type of handshake failure. Azure Arc and the Microsoft package repositories require secure HTTPS communication using valid TLS certificates.
This document helps Azure Arc-enabled services and features Azure Arc network requirements - Azure Arc | Microsoft Learn
Please try the following steps to resolve the issue:
- Configure APT to Use the Proxy Explicitly
APT does not always honor environment variables, so it’s important to configure the proxy directly.
- sudo nano /etc/apt/apt.conf.d/95proxy
Add:
- Acquire::http::proxy "http://your-proxy-server:port/";
- Acquire::https::proxy "http://your-proxy-server:port/";
Then run:
- sudo apt update
- ``
- Ensure CA Certificates Are Up-to-Date
TLS connections require a valid trust chain. Updating certificates ensures the system can trust the repository:
- sudo apt update
- sudo apt install --reinstall ca-certificates
- sudo dpkg-reconfigure ca-certificates
- Check TLS Inspection on the Proxy (Important)
If your proxy performs TLS inspection, it can interfere with certificate validation and cause handshake failures.
Where possible, configure the proxy to bypass TLS inspection for Microsoft endpoints such as.
-
packages.microsoft.com -
*.microsoft.com
TLS inspection issues can cause failures when the client does not trust the inspection certificate or when certificate validation is altered.
This document explains common troubleshooting scenarios when deploying a Transport Layer Security (TLS) inspection policy Troubleshoot Transport Layer Security inspection errors - Global Secure Access | Microsoft Learn
- Configure Proxy for the Azure Arc Agent (After Installation)
Once the packages install successfully, configure the Azure Arc agent to use the proxy:
- sudo /opt/azcmagent/bin/azcmagent_proxy add "http://your-proxy-server:port"
Additionally, ensure your environment allows outbound HTTPS (TCP 443) to the required Azure endpoints, as documented in Azure Arc network requirements.
After applying the above steps:
- APT should successfully connect to
packages.microsoft.com - The TLS handshake error should be resolved
- Azure Arc installation should proceed normally on Ubuntu
If the issue resolved please feel free to click the 'Upvote' button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.