Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
The error messages you’re getting while installing the Azure Connected Machine agent (Arc agent) on your Ubuntu 24.04 machine suggest there are issues with accessing the package repository and completing the installation.
Currently, Azure Arc may not officially support Ubuntu 24.04, which could result in installation issues. If possible, it is recommended to use a supported version, such as Ubuntu 22.04 or 20.04, for the installation.
1.Before running the installation script, make sure your package lists are updated.
sudo apt update
2.Ensure that curl is installed, as it is required to download packages.
sudo apt install -y curl
3.Because of issues with the Microsoft repository, you can manually download the Azure Connected Machine agent package for a supported Ubuntu version (e.g., 20.04) and install it.
curl -L https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/a/azcmagent/azcmagent_1.20.02012.246_amd64.deb -o /tmp/azcmagent.deb
4.Install the Package:
sudo dpkg -i /tmp/azcmagent.deb
5.If there are dependency issues after installation, run:
sudo apt-get install -f
6.After installation, check that the agent is installed correctly by running:
azcmagent --version
7.After installation, connect the agent to Azure Arc using your specific details:
azcmagent connect --resource-group <YourResourceGroup> --tenant-id <YourTenantID> --location <YourLocation> --subscription-id <YourSubscriptionID>
For reference, please review this documentation :-
https://learn.microsoft.com/en-us/azure/network-watcher/connection-monitor-connected-machine-agent?tabs=LinuxScript
https://learn.microsoft.com/en-us/azure/azure-arc/servers/manage-agent?tabs=windows
https://learn.microsoft.com/en-us/azure/azure-arc/servers/troubleshoot-agent-onboard
If you have any further queries, do let us know.
If the answer is helpful, please click "Accept Answer" and "Upvote it".