Hello everyone,
We centralize the management of updates for Debian workstations via WAPT.
I created a very simple package that checks for updates and launches the upgrades.
We also have a package that audits updates and lists those that need to be deployed.
We then install the update management package "by force," and it installs correctly.
EXCEPT:
when the WAPT agent update is among the updates, it crashes and throws an error.
And if we connect to the Debian machine, it asks us to run `dpkg --configure -a` to correct the installation problems.
Initially, I suspected that the forced restart of the syslog service after the WAPT agent installation, even if the service isn't present, was causing an error (no prior check for service existence).
So, I created a package that simply runs the command: `dpkg --configure -a`, and outputs all the errors. But this package doesn't work either, and outputs nothing.
I ran the same package in debug mode via VS Code over SSH, and it works fine there.
The only unusual thing is that the WAPT agent service restarts after installation.
I have the impression that the console can't handle this restart and crashes the installation.
So I can't find a solution, except for now to do without WAPT for managing Debian updates and go back to Ansible.
If anyone has any ideas on how to solve this problem,
thank you!
