CryptSetup packages should not be removed by `apt-get autoremove` on system installed with encryption and LVM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Eoan |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Eoan |
Invalid
|
Undecided
|
Unassigned | ||
ubiquity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-mate-meta (Ubuntu) |
Fix Released
|
Undecided
|
Martin Wimpress | ||
Eoan |
Fix Released
|
Undecided
|
Martin Wimpress |
Bug Description
Steps to reproduce:
1. Install Ubuntu 19.10 MATE with Encryption and LVM
2. Ensure that it boots after install
3. Run `sudo apt autoremove`
Expected results:
* there are no packages to remove
Actual results:
* it tries to remove cryptsetup:
$ sudo apt autoremove
[sudo] password for mate:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
cryptsetup cryptsetup-bin cryptsetup-
0 upgraded, 0 newly installed, 4 to remove and 23 not upgraded.
After this operation, 1 178 kB disk space will be freed.
Do you want to continue? [Y/n]
and this will lead on un-bootable encrypted system.
This is very unexpected and dangerous.
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: cryptsetup 2:2.2.0-2ubuntu1
ProcVersionSign
Uname: Linux 5.2.0-10-generic x86_64
ApportVersion: 2.20.11-0ubuntu7
Architecture: amd64
CurrentDesktop: MATE
Date: Tue Aug 27 23:55:09 2019
InstallationDate: Installed on 2019-08-27 (0 days ago)
InstallationMedia: Ubuntu-MATE 19.10 "Eoan Ermine" - Alpha amd64 (20190827)
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
cmdline: BOOT_IMAGE=
crypttab: sda5_crypt UUID=784fac4b-
Related branches
- Ubuntu Installer Team: Pending requested
-
Diff: 40 lines (+12/-2)2 files modifieddebian/changelog (+7/-0)
ubiquity/install_misc.py (+5/-2)
- Ubuntu Installer Team: Pending requested
-
Diff: 29 lines (+12/-0)2 files modifiedcompat/apt-install (+5/-0)
debian/changelog (+7/-0)
tags: | added: rls-ee-incoming |
tags: | removed: rls-ee-incoming |
tags: | added: id-5d67fa92e3efdf15acdae69d |
Changed in ubuntu-mate-meta (Ubuntu Eoan): | |
status: | Confirmed → In Progress |
assignee: | nobody → Martin Wimpress (flexiondotorg) |
Changed in ubuntu-mate-meta (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
Changed in livecd-rootfs (Ubuntu Eoan): | |
status: | Triaged → Invalid |
This is a screenshot after running `apt-get autoremove` showing messages
Volume group "vgubuntu-mate" not found.
Cannot process volume group vgubuntu-mate
so the system is un-bootable and encrypted.