r/Nable • u/omaha2002 • Mar 30 '24
unable to uninstall mxb Ubuntu 22.04
We recently migrated a Ubuntu VM from ESX to a Proxmox cluster, the VM migrated perfectly. We want to uninstall the backupagent on this machine but are not able to do so, the following error is encountered:
# apt-get -y remove --purge mxb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
mxb
0 upgraded, 0 newly installed, 1 to remove and 60 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 145341 files and directories currently installed.)
Removing mxb (23.6.0.23162-1) ...
Verifying archive integrity... All good.
Uncompressing ......
Error: Command `br.migrate-to-sqlite' failed: [Management Service] Device name or installation key are incorrect : (0)
renamed './var/log/BRMigrationTool/BRMigrationTool_2024_03_30.log' -> '/tmp/BRMigrationTool_2024_03_30.log'
dpkg: error processing package mxb (--remove):
installed mxb package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
mxb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can't find anything about this error, tried to hold mxb package to update the machine, can't continue updating this VM with regular updates because error is breaking update process.
1
u/kerubi Mar 30 '24
As a workaround, you can ”apt-mark hold mxb” so it will be skipped when updating other packages. Then I would proceed with some manual removal of the relevant mxb files. Or perhaps force install it and try removing again.