linuxmint / mintupdate

The Linux Mint Update Manager
315 stars 154 forks source link

mintupdate wipes /var/lib/dpkg when ran on a freshly installed ZFS-encrypted Linux Mint system #885

Open jack-avery opened 1 month ago

jack-avery commented 1 month ago

Describe the bug Title. After installing Linux Mint with an encrypted ZFS drive, Update Manager prompts an update. When the update completes, the user is booted from their session, and /var/lib/dpkg is empty.

Screenshots https://youtu.be/QIuuIerXMbs Complete reproduction video. This is from a completely fresh installation in Oracle VBox, but it occurred the exact same on my laptop. Timestamps are in the description.

To Reproduce

  1. Select ZFS with Encrytion when prompted for drives.
  2. Complete installation as usual.
  3. Reboot -- Update Manager wants an update -- run it
  4. /var/lib/dpkg is now empty, and the system is unusable.

Expected behavior /var/lib/dpkg remains intact

Distribution:

Software version: 6.0.7 before, successfully updates to 6.0.9

Logs: The logs have no further information aside from complaining about apt state. I checked all files under /tmp/mintupdate. I'm not sure of a way to get the logs out of the VM without Guest Additions and attempting to install them is failing as well.

Additional context This only occurs with a ZFS-encrypted Mint install. I tested unencrypted Mint and it works fine. I've not tested it on LMDE.

jack-avery commented 1 month ago

Additional information may be available in the above mentioning closed issue, I closed it as this issue seems more appropriate