2

In previous Ubuntu 16.04 LTS version I used the following procedure in Aptitude to undo package installation or removal:

  1. Start Aptitude curses by sudo aptitude
  2. Select some package(s) to install or remove
  3. Review the changes list
  4. Hit F10, then from Actions choose Cancel pending actions to undo the selections made.

The above method fails with modern versions of Ubuntu like 18.04 LTS, 20.04 LTS and 20.10. This change is documented in changelog from 2016-02-21 for Version 0.7.6.

How can get "Cancel pending actions" functionality in modern Ubuntu versions?

1 Answer 1

2

According to this conversation, this is not possible anymore. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816781#10

You have to revert your actions and mark the packages as keep instead of install.

To do it globally, you can use sudo aptitude keep-all which is useful because sometimes aptitude can take a lot of time trying to fix dependencies and you are stuck until it gives up.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .