/var/lib/lightdm not created by default

Bug #1540933 reported by Luca Osvaldo Mastromatteo
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Fix Released
High
Unassigned
Wily
Won't Fix
High
Unassigned
Xenial
Fix Released
High
Unassigned

Bug Description

[Impact]
After apt-get purge lightdm the /var/lib/lightdm folder is deleted and then never recreated reinstalling the lightdm package. The folder is necessary due to the create of the .Xauthority file.

[Test Case]
1. $ sudo apt-get purge lightdm
2. $ sudo apt-get install lightdm

Expected result:
LightDM starts
Observed result:
Lightdm can't start. Manually creating /var/lib/lightdm and chown lightdm:lightdm makes it work.

[Regression Potential]
Low. The change is to not remove /var/lib/lightdm on package removal. This directory should only be removed when the user is removed.

Related branches

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Good catch! Thanks for finding.

Changed in lightdm (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in lightdm (Ubuntu Vivid):
status: New → Won't Fix
importance: Undecided → High
Changed in lightdm (Ubuntu Wily):
importance: Undecided → High
Changed in lightdm (Ubuntu Trusty):
importance: Undecided → High
Changed in lightdm (Ubuntu Precise):
importance: Undecided → High
status: New → Triaged
Changed in lightdm (Ubuntu Trusty):
status: New → Triaged
Changed in lightdm (Ubuntu Wily):
status: New → Triaged
Changed in lightdm (Ubuntu Trusty):
status: Triaged → Fix Committed
Changed in lightdm (Ubuntu Wily):
status: Triaged → Fix Committed
Changed in lightdm (Ubuntu Xenial):
status: Triaged → Fix Committed
Changed in lightdm (Ubuntu Precise):
status: Triaged → Fix Committed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This is a side effect of bug 924224 - since we no longer remove the lightdm user we don't try and create it on reinstall, thus the directory is never created.

no longer affects: lightdm (Ubuntu Vivid)
no longer affects: lightdm (Ubuntu Trusty)
no longer affects: lightdm (Ubuntu Precise)
Changed in lightdm (Ubuntu Xenial):
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.17.5-0ubuntu2

---------------
lightdm (1.17.5-0ubuntu2) xenial; urgency=medium

  * debian/control:
    - Fix liblightdm-qt5-3-dev to depend on qtbase5-dev, not libqt4-dev

 -- Michael Terry <email address hidden> Wed, 03 Feb 2016 13:45:53 -0500

Changed in lightdm (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Luca, or anyone else affected,

Accepted lightdm into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lightdm/1.16.7-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Luca Osvaldo Mastromatteo (lukycrociato) wrote :

Hi. Yes, now the apt-get purge lightdm command does not remove the lightdm folder. But since I had this bug days ago, I had to recreate it manually and the people already affected need to recreate it manually, even if this will be last time. So the new update does not create it if the user exists but the folder no. Sorry for my bad english hope you understand, just to let you know, thank you anyway.

Revision history for this message
Martin Pitt (pitti) wrote :

The wily update was not verified in three months, and wily is almost EOL. So I removed the -proposed package.

Changed in lightdm (Ubuntu Wily):
status: Fix Committed → Won't Fix
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.