Public bug reported: Both of the following commands fail:
apt remove percona-xtradb-cluster-server-5.7 apt purge percona-xtradb-cluster-server-5.7 with: Removing percona-xtradb-cluster-server-5.7 (5.7.20-29.24-0ubuntu2) ... dpkg: error processing package percona-xtradb-cluster-server-5.7 (--remove): installed percona-xtradb-cluster-server-5.7 package post-removal script subprocess returned error exit status 1 Errors were encountered while processing: percona-xtradb-cluster-server-5.7 E: Sub-process /usr/bin/dpkg returned an error code (1) The case statement in the postrm script has a 'purge)' case but no 'remove)' case. Therefore when called with the remove parameter (which occurs for both apt purge and apt remove), no match is found in the case statement, and the '*)' path is taken which calls 'exit 1'. ** Affects: percona-xtradb-cluster-5.7 (Ubuntu) Importance: Undecided Status: New ** Summary changed: - apt purge/remove of percona-xtradb-cluster-server-5.7 postrm failure + apt purge/remove of percona-xtradb-cluster-server-5.7 postrm fails ** Summary changed: - apt purge/remove of percona-xtradb-cluster-server-5.7 postrm fails + [SRU] apt purge/remove of percona-xtradb-cluster-server-5.7 postrm fails ** Summary changed: - [SRU] apt purge/remove of percona-xtradb-cluster-server-5.7 postrm fails + [SRU] apt purge/remove percona-xtradb-cluster-server-5.7 postrm fails ** Description changed: Both of the following commands fail: apt remove percona-xtradb-cluster-server-5.7 apt purge percona-xtradb-cluster-server-5.7 with: Removing percona-xtradb-cluster-server-5.7 (5.7.20-29.24-0ubuntu2) ... dpkg: error processing package percona-xtradb-cluster-server-5.7 (--remove): - installed percona-xtradb-cluster-server-5.7 package post-removal script subprocess returned error exit status 1 + installed percona-xtradb-cluster-server-5.7 package post-removal script subprocess returned error exit status 1 Errors were encountered while processing: - percona-xtradb-cluster-server-5.7 + percona-xtradb-cluster-server-5.7 E: Sub-process /usr/bin/dpkg returned an error code (1) The case statement in the postrm script has a 'purge)' case but no 'remove)' case. Therefore when called with the remove parameter (which occurs for both apt purge and apt remove), no match is found in the case - statement, therefore the '*)' path is taken which calls 'exit 1'. + statement, and the '*)' path is taken which calls 'exit 1'. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771869 Title: [SRU] apt purge/remove percona-xtradb-cluster-server-5.7 postrm fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/percona-xtradb-cluster-5.7/+bug/1771869/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs