Azure Patch Manager Error Code (100) - Ubuntu 24.04 LTS

Rob T 5 Reputation points
2024-09-27T21:37:31.0266667+00:00

While testing the capability's of Azure Arc for on-prem servers using 24.04 LTS I'm receiving the below.

The machine show connected inside azure arc -> machine name. However when attempting to use the updates -> Check for updates the error below is generating in azure.

Assessment failed due to this reason: Assessment completed with 1 errors

Unexpected return code (100) from package manager on command: LANG=en_US.UTF8 sudo apt-get -s dist-upgrade -oDir::Etc::Sourcelist=/var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.45.0/tmp/msft-aumc-security-patches-1d6d5e68-8f77-488b-9b23-d5f3ea923a45.list and output: E: Type 'URIs:' is not known on line 1 in source list /var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.45.0/tmp/msft-aumc-security-patches-1d6d5e68-8f77-488b-9b23-d5f3ea923a45.list

E: The list of sources could not be read.

E: Type 'URIs:' is not known on line 1 in source list /var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.45.0/tmp/msft-aumc-security-patches-1d6d5e68-8f77-488b-9b23-d5f3ea923a45.list

E: The list of sources could not be read.

The file location of /var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.45.0/tmp/msft-aumc-security-patches-1d6d5e68-8f77-488b-9b23-d5f3ea923a45.list does not exist on any Ubuntu Linux Sytems.

However servers running 22.04.5 LTS using same enrollment file are functional. File /var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.45.0/tmp/msft-aumc-security-patches-1d6d5e68-8f77-488b-9b23-d5f3ea923a45.list does not exist here either.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
410 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
303 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Verhaeghe Jan 5 Reputation points
    2024-09-30T10:02:44.24+00:00

    This file contains the following just before being deleted by the update check itself:

    URIs: http://security.ubuntu.com/ubuntu
    Suites: noble-security
    
    1. This format should not have the .list extension but .sources according to https://repolib.readthedocs.io/en/latest/deb822-format.html
    2. It's missing the Types element
    3. It's missing the Components element

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.