Actions
Bug #13672
closedUninstall on debian 9
Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
-
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:
Description
Hi,
It's currently impossible to remove rudder-agent without a modification of `/var/lib/dpkg/info/rudder-agent.postrm`.
Here without modification:
root@JeremDeb9Test:~# apt-get remove rudder-agent Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libyaml-0-2 net-tools Use 'apt autoremove' to remove them. The following packages will be REMOVED: rudder-agent 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. After this operation, 33.1 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 32074 files and directories currently installed.) Removing rudder-agent (5.0.0-stretch0) ... INFO: A back up copy of the /opt/rudder/etc/uuid.hive has been created in /var/backups/rudder INFO: A back up copy of the /var/rudder/cfengine-community/policy_server.dat has been created in /var/backups/rudder INFO: A back up copy of the /var/rudder/cfengine-community/ppkeys has been created in /var/backups/rudder Warning: rudder-agent.service changed on disk. Run 'systemctl daemon-reload' to reload units. Failed to disable unit: No such file or directory dpkg: error processing package rudder-agent (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: rudder-agent E: Sub-process /usr/bin/dpkg returned an error code (1)
When I comment these 2 lines in the file `/var/lib/dpkg/info/rudder-agent.postrm` everything ok:
systemctl stop rudder-agent systemctl disable rudder-agent rudder-cf-execd rudder-cf-serverd
With comment:
root@JeremDeb9Test:~# apt-get remove rudder-agent Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libyaml-0-2 net-tools Use 'apt autoremove' to remove them. The following packages will be REMOVED: rudder-agent 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. 1 not fully installed or removed. After this operation, 33.1 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 29178 files and directories currently installed.) Removing rudder-agent (5.0.0-stretch0) ...
Some information:
root@JeremDeb9Test:~# cat /etc/debian_version 9.5 rudder-agent (5.0.0-stretch0)
Updated by Alexis Mousset almost 6 years ago
- Is duplicate of Bug #13762: Rudder agent uninstall may fail to to systemd unit added
Updated by Alexis Mousset almost 6 years ago
- Status changed from New to Rejected
duplicate of #13762
Actions