Potential inconsistency due to system halt/reboot being allowed when package installation in progress
Bug #1820886 reported by
João Pedro Seara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Julian Andres Klode | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
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-
summary: |
- Inhibit system halt when package installation in progress + System halt/reboot is allowed when package installation in progress |
summary: |
- System halt/reboot is allowed when package installation in progress + Potential inconsistency due to system halt/reboot being allowed when + package installation in progress |
tags: | added: sts |
no longer affects: | landscape-client |
description: | updated |
description: | updated |
tags: | added: id-5c912dccec34916fc8563ef9 |
Changed in apt (Ubuntu): | |
status: | New → Triaged |
assignee: | nobody → Julian Andres Klode (juliank) |
importance: | Undecided → High |
importance: | High → Medium |
Changed in apt (Ubuntu Cosmic): | |
status: | New → In Progress |
Changed in apt (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in apt (Ubuntu Xenial): | |
status: | New → In Progress |
To post a comment you must log in.
This has been on my agenda for quite some time. It means apt will need to talk dbus, and it might need to be able to react to a shutdown notification from dbus, which might get pretty complex, but I have not checked in detail.
It's not clear yet which dbus library to use. Starting with systemd's library would be fine, but we might eventually want to move to gdbus if we choose to implement a new apt daemon in apt using dbus, to not have it be linux-specific.