missing dependency allows encryptfs-utils to be autoremoved

Bug #710049 reported by Jonathan Marsden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxdm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lxdm

After installing Lubuntu 10.10 from CD, several packages are listed as being no longer needed and ready for removal by apt-get autoremove. This list of packages includes ecryptfs-utils and its dependencies keyutils and libecryptfs0 .

These packages are used by lxdm to handle automounting of encrypted home directories, and removing them *breaks* this.
If such a directory is mounted at the time of the autoremove, this results in an inconsistent package database (ecryptfs-utils is not removed because it is in use, but the others are, and it depends on them!).

Proposed solution: Adding a Depends: ecryptfs-utils to lxdm should prevent this issue. I hope to provide a debdiff against the lxdm currently in maverick-proposed to do this, as proof of concept at least.

The other packages which are set for autoremove after installing Lubuntu should also be checked and any that are not really OK to remove need to be depended on by an appropriate package. Should *any* packages be set for autoremoval immediately after an Lubuntu installation?

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: lxdm 0.2.0-0ubuntu3.2
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic i686
Architecture: i386
Date: Sun Jan 30 00:12:51 2011
InstallationMedia: Lubuntu 10.10 "Maverick Meerkat" - i386 (20101010)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lxdm

Revision history for this message
Jonathan Marsden (jmarsden) wrote :
Revision history for this message
Jonathan Marsden (jmarsden) wrote :

There is information in bug #635698 and bug #653628 which is relevant to this issue.

#635698 is fixed and independent of this autoremove problem, and #635628 is filed against ecryptfs-utils which cannot "force itself" to stay installed. Therefore, I opened a new bug report to deal with this issue, agains lxdm, which appears to be a suitable candidate package for the necessary Depends: line.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

I note that the adduser package "Suggests:" ecryptfs-utils .

Were it to "Recommend:" it instead, this issue would probably disappear. But I suspect there are probably reasons for only suggesting it that I am unaware of.

Revision history for this message
Julien Lavergne (gilir) wrote :

Thank you for the bug report. As a side note, I can't find how it's solved by ubuntu/gdm, there is no such depends on both package.

Revision history for this message
Julien Lavergne (gilir) wrote :

It seems to be fixed in adduser itself :

adduser (3.112+nmu1ubuntu5) natty; urgency=low

  * debian/control: fix an often-duplicated bug, which causes apt to try
    and remove ecryptfs-utils, even though it is in use; have adduser
    recommend, rather than suggest ecryptfs-utils, LP: #653628
 -- Dustin Kirkland <email address hidden> Wed, 09 Mar 2011 11:16:13 +0000

Also, Installing Lubuntu alpha 3 + upgrading, the ecryptfs-utils is not set for auto-removal anymore. We need to check it in the next ISO to be sure, but for now, I'm setting it as Fix Released.

Changed in lxdm (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.