kdm postinst fails when /etc/X11/default-display-manager is 0 byte file
Bug #285172 reported by
Mark Painter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase-workspace (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
When installing kubuntu-desktop, one of my machines which had a 0 byte /etc/X11/
> sudo dpkg --configure -a
Setting up kdm (4:3.5.
basename: missing operand
Try `basename --help' for more information.
dpkg: error processing kdm (--configure):
subprocess post-installation script returned error exit status 1
tags: | added: bitesize packaging |
To post a comment you must log in.
This happened to me with kdm4 (4:4.1. 2-0ubuntu13) , when my /etc/X11/ default- display- manager file was 1 line, with the following text:
#/usr/bin/kdm
So, it's not just 0 byte files; also files that begin with "#", which I imagine is a pretty normal way for people to turn off the display manager when they don't want it to start automatically.
Removing the default- display- manager file let me finish the installation correctly, of course.