[Bug 1820886] Re: Potential inconsistency due to system halt/reboot being allowed when package installation in progress
Julian Andres Klode
julian.klode at canonical.com
Mon May 27 09:17:35 UTC 2019
Verified for 1.7.5 in cosmic:
ubuntu at apt-cosmic:~$ systemctl reboot
Operation inhibited by "APT" (PID 683 "apt", user root), reason is "APT is installing or removing packages".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl reboot -i'.
** Tags removed: verification-needed verification-needed-cosmic
** Tags added: verification-done verification-done-cosmic
--
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/1820886
Title:
Potential inconsistency due to system halt/reboot being allowed when
package installation in progress
Status in apt package in Ubuntu:
Fix Released
Status in apt source package in Xenial:
Fix Committed
Status in apt source package in Bionic:
Fix Committed
Status in apt source package in Cosmic:
Fix Committed
Status in apt source package in Disco:
Fix Released
Bug description:
[System]
Any current Ubuntu Desktop/Server supported release (Trusty, Xenial, Bionic, Cosmic).
[Impact]
Package installation turns into an inconsistent state if system is rebooted in the middle of an apt install/upgrade.
[Test Case]
1. User1 at Ubuntu box issues "sudo apt-get upgrade";
2. User2 at Ubuntu box issues "shutdown -r" or reboots it using the GUI;
3. System reboots and potentially turns into an inconsistent state.
[Remarks]
APT should automatically inhibit system halts/reboots while packages being installed/removed. A similar behavior to what is shown by unattended-upgrades.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1820886/+subscriptions
More information about the foundations-bugs
mailing list