[Bug 1841672] Re: CryptSetup packages should not be removed by `apt-get autoremove` on system installed with encryption and LVM

FranksMCB 1841672 at bugs.launchpad.net
Tue Aug 27 21:19:43 UTC 2019


Confirm issue exists on bare metal as well.

Installed on laptop and followed exact commands as above and upon reboot
booted into busybox and not able to access filesystem.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1841672

Title:
  CryptSetup packages should not be removed by `apt-get autoremove` on
  system installed with encryption and LVM

Status in cryptsetup package in Ubuntu:
  Confirmed
Status in ubiquity package in Ubuntu:
  Confirmed
Status in ubuntu-mate-meta package in Ubuntu:
  Confirmed

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-initramfs cryptsetup-run
  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
  ProcVersionSignature: Ubuntu 5.2.0-10.11-generic 5.2.4
  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=/vmlinuz-5.2.0-10-generic root=/dev/mapper/vgubuntu--mate-root ro quiet splash
  crypttab: sda5_crypt UUID=784fac4b-d7a4-4e62-b57e-7ce01e8b0160 none luks,discard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1841672/+subscriptions



More information about the foundations-bugs mailing list