Patch Automation Fails (Azure/Ubuntu)

Mark Milano 1 Reputation point
2021-12-27T16:25:17.04+00:00

I am trying to automate patching on a few Ubuntu instances and getting failures. Mostly it seems the commands are not running with sudo

Below are snippets from the omsupdatemgmt.log

2021-12-23 16:31:04> Linux distribution: ('Ubuntu', '18.04', 'bionic')

2021-12-23 16:31:04>

DEBUG: Sudo status check: True

2021-12-23 16:31:04>

DEBUG:
Invoking package manager using: sudo apt-get -q update
DEBUG:

DEBUG:
Discovering all packages...
DEBUG:
Invoking package manager using: LANG=en_US.UTF8 sudo apt-get -s dist-upgrade
DEBUG:

==[SUCCESS]===============================================================

DEBUG:
Extracting package and version data...
DEBUG: Extracted package and version data for 169 packages.
DEBUG: Discovered 169 package entries.

DEBUG:
RESOLVING DEPENDENCIES USING COMMAND: env DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install base-files
DEBUG:
Invoking package manager using: env DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y LANG=en_US.UTF8 apt-get -y --only-upgrade true -s install base-files
DEBUG:

==[SUCCESS]===============================================================
DEBUG: - Return code from package manager: 0
DEBUG: - Output from package manager:
| NOTE: This is only a simulation!
| apt-get needs root privileges for real execution.
| Keep also in mind that locking is deactivated,
| so don't depend on the relevance to the real current situation!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,778 questions
{count} votes

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.