Actions
Bug #38781
closedError in global registration script for ubuntu
Description
When apt-get remove is executed:
```
Removing sublift (1.30.5-2) ...
Removing libfuse2t64:amd64 (2.9.9-8.1build1) ...
Setting up cloud-init (25.1.4-0ubuntu0~24.04.1) ...
> Modified (by you or by a script) since installation.
> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
- cloud.cfg (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package cloud-init (--configure):
end of file on stdin at conffile prompt
Processing triggers for libc-bin (2.39-0ubuntu8.6) ...
Errors were encountered while processing:
cloud-init
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
This can be fixed by using the same options for apt-get remove as for apt-get install https://github.com/theforeman/foreman/blob/develop/app/views/unattended/provisioning_templates/snippet/pkg_manager.erb#L32
Actions