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

Rob T 20 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.
456 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
328 questions
{count} votes

2 answers

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

  2. Sven Jansen 1 Reputation point
    2024-11-10T14:36:28.64+00:00

    Azure Update Management still have issues with Ubuntu 24.04. machines. Our ubuntu.sources contain:

    Types: deb
    URIs: http://archive.ubuntu.com/ubuntu/
    Suites: noble noble-updates noble-backports
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    
    Types: deb
    URIs: http://security.ubuntu.com/ubuntu/
    Suites: noble-security
    Components: main restricted universe multiverse
    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
    
    

    But it looks more like it fails on temporary created .list files.

    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.50.0/tmp/msft-aumc-security-patches-e84b2e9d-6b22-4875-878d-4230bcaa6355.list  and output: E: Type 'URIs:' is not known on line 1 in source list /var/lib/waagent/Microsoft.SoftwareUpdateManagement.LinuxOsUpdateExtension-1.0.50.0/tmp/msft-aumc-security-patches-e84b2e9d-6b22-4875-878d-4230bcaa6355.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.50.0/tmp/msft-aumc-security-patches-e84b2e9d-6b22-4875-878d-4230bcaa6355.list
    E: The list of sources could not be read.
    
    

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.