Public bug reported:

In a fresh/clean install of Xubuntu 18.10, if an unsuspecting user runs
'apt autoremove', it will remove 'cryptsetup' and 'lvm2' making the
system non-bootable at next restart if an encrypted(LUKS+LVM) drive was
selected during the ubiquity installer wizard:

$ sudo apt update && sudo apt --auto-remove full-upgrade && cat /run/reboo*
<snip...>
The following packages will be REMOVED:
  cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run dmeventd 
libdevmapper-event1.02.1 liblvm2app2.2 liblvm2cmd2.02 libreadline5 lvm2
<...snip>

This _will_ make the system non-bootable upon restart if LUKS+LVM are
active on main drive.

WORKAROUND:

$ sudo apt install cryptsetup lvm2
<snip...>
cryptsetup is already the newest version (2:2.0.4-2ubuntu2).
cryptsetup set to manually installed.
lvm2 is already the newest version (2.02.176-4.1ubuntu3).
lvm2 set to manually installed.
<...snip>

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: xubuntu-core 2.227
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Nov  4 18:20:38 2018
InstallationDate: Installed on 2018-11-04 (0 days ago)
InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.2)
SourcePackage: xubuntu-meta
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: xubuntu-meta (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug apt cosmic luks lvm2 xubuntu

** Summary changed:

- xubuntu-core needs to depend on cryptsetup and lvm2 or autoremove will make 
system non-bootable
+ xubuntu-core needs to depend on cryptsetup and lvm2 or 'apt autoremove' will 
make a LUKS-LVM encrypted system non-bootable

** Summary changed:

- xubuntu-core needs to depend on cryptsetup and lvm2 or 'apt autoremove' will 
make a LUKS-LVM encrypted system non-bootable
+ xubuntu-core needs to depend on cryptsetup and lvm2 or 'apt autoremove' will 
make a LUKS+LVM encrypted system non-bootable

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

Title:
  xubuntu-core needs to depend on cryptsetup and lvm2 or 'apt
  autoremove' will make a LUKS+LVM encrypted system non-bootable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xubuntu-meta/+bug/1801629/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to