Patch Automation Fails (Azure/Ubuntu)
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!