Another detail that might be worth mentioning... Running "aptitude update" to create the /var/lib/aptitude/pkgstates file seems to ONLY work from a tty. From a connection with no tty (such as one initiated via ansible), it does not seem to create the file.
I had to work around things by making aptitude actually run a command that will do an action without any doubt (such as... aptitude install -y sudo). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1817350 Title: Running 'aptitude update' clears hold flags on packages To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1817350/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs