[Bug 1844634] Re: Removals keep removing dependencies if removal of a package fails
Julian Andres Klode
julian.klode at canonical.com
Thu Sep 19 08:39:28 UTC 2019
** Description changed:
[Impact]
Assuming packages A and B, with A depending on B. A has a failing prerm
script.
Expected behavior:
- A fails to be removed, A and B stay unchanged
Actual behavior:
- A fails to be removed
- B is still removed
+ This might crash their system (e.g. if A is systemd and B is
+ libsystemd0).
+
[Test case]
- TBD
+ See Impact. An automated version of the test case (test-apt-get-remove-depends) is included and run on autopkgtest.
[Regression potential]
We now abort earlier in removal failures, that might be harder to recover from or not, nobody really knows.
** Bug watch added: Debian Bug tracker #935910
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935910
** Also affects: apt (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935910
Importance: Unknown
Status: Unknown
** Changed in: apt (Ubuntu)
Importance: Undecided => High
** Changed in: apt (Ubuntu)
Status: New => Fix Committed
** Changed in: apt (Ubuntu)
Assignee: (unassigned) => Julian Andres Klode (juliank)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1844634
Title:
Removals keep removing dependencies if removal of a package fails
Status in apt package in Ubuntu:
Fix Committed
Status in apt package in Debian:
Unknown
Bug description:
[Impact]
Assuming packages A and B, with A depending on B. A has a failing
prerm script.
Expected behavior:
- A fails to be removed, A and B stay unchanged
Actual behavior:
- A fails to be removed
- B is still removed
This might crash their system (e.g. if A is systemd and B is
libsystemd0).
[Test case]
See Impact. An automated version of the test case (test-apt-get-remove-depends) is included and run on autopkgtest.
[Regression potential]
We now abort earlier in removal failures, that might be harder to recover from or not, nobody really knows.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1844634/+subscriptions
More information about the foundations-bugs
mailing list