** Description changed:

  [Impact]
  
  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'.
  
  [Testcase]
  
- See [Impact] section.
+ apt remove/purge should be successful. See [Impact] section for failure t
+ hat should no longer be encountered.
  
  [Regression Potential]
  Low. This just updates the postrm script to add a no-op 'remove' case.

** Description changed:

  [Impact]
  
  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'.
  
  [Testcase]
  
- apt remove/purge should be successful. See [Impact] section for failure t
- hat should no longer be encountered.
+ apt remove/purge should be successful. See [Impact] section for failure
+ that should no longer be encountered.
  
  [Regression Potential]
  Low. This just updates the postrm script to add a no-op 'remove' case.

-- 
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

Reply via email to