Update on Azure Linux VM fails

Lyubomir Bistrekov 35 Reputation points
2024-03-15T14:21:00.6633333+00:00

Hello,

When I try to update a Linux VM (Ubuntu 22.04) from Azure either manually (One-time-update) or using a scheduled update, the update fails. The update works if I do it on the machine, but not from Azure.

This is what I see in the log file as an error:

--
2024-03-14T19:38:50Z> [Time available: 3:45:52.166858 | A: 0, S: 0, F: 0 | D: 0] Processing batch index: 0, Number of packages: 3

Processing packages: ['ubuntu-advantage-tools', 'ubuntu-pro-client', 'ubuntu-pro-client-l10n']

    DEBUG: RESOLVING DEPENDENCIES USING COMMAND: DEBIAN_FRONTEND=noninteractive  LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n

    DEBUG: Invoking package manager using: DEBIAN_FRONTEND=noninteractive  LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n
```2024-03-14T19:38:51Z> [ERROR] Package manager was invoked using: DEBIAN_FRONTEND=noninteractive  LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n

2024-03-14T19:38:51Z> WARNING:- Return code from package manager: 100

2024-03-14T19:38:51Z> WARNING:- Output from package manager:  | Reading package lists... |      Building dependency tree... |   Reading state information... |  E: Unable to locate package ubuntu-pro-client

```haskell
    DEBUG: Setting installation substatus. [Substatus=transitioning]

    DEBUG: Checking if reboot status needs to reflect machine reboot status.
```2024-03-14T19:38:51Z> ERROR:EXCEPTION during patch operation: Exception('Unexpected return code (100) from package manager on command: DEBIAN_FRONTEND=noninteractive  LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n ', '')

--

I was not able to find any solution for this problem yet, so any help would be appreciated.

Cheers,  
Lyubo

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,101 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
214 questions
{count} votes

Accepted answer
  1. deherman-MSFT 33,216 Reputation points Microsoft Employee
    2024-03-19T21:09:27.1+00:00

    @Lyubomir Bistrekov
    Thanks for the additional information. I am able to reproduce this issue. To work around this issue my recommendation is to manually install the ubuntu-pro-client package. After this you should be able to run updates as normal without errors.

    apt-get install ubuntu-pro-client
    

    I have reported this issue to the Azure Updates internal team and will update once I confirmed this issue is resolved.

    Hope this helps! Let me know if you still have questions or need further assistance.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful