Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not set
Hello, Basically of what I have seen in the postinst script there are two problems: 1) the shared/default-x-server is never set 2) if discover is installed or not xserver-xorg/config/device/driver isn't set either. Both values are mandatory for the dexconf script to work. I have added an auto_answer for the shared/default-x-server in the condition that says “$OWNERS has only one value; shared/default-x-server will not be asked”, with a fallback that askes for the input. Next I trampled over another bug concerning the device driver. I did the same stuff as for the default-x-server. I also added a default fallback driver to “vesa” in case discover isn't installed. The patch is not perfect, but it Just worksTM :p Best Regards, Mike diff --git a/debian/xserver-xorg.postinst.in b/debian/xserver-xorg.postinst.in index 887f76c..b86f34b 100644 --- a/debian/xserver-xorg.postinst.in +++ b/debian/xserver-xorg.postinst.in @@ -711,6 +711,10 @@ fi if ! expr $OWNERS : .*,.* /dev/null 21; then debug_echo \$OWNERS has only one value; shared/default-x-server will not be asked + auto_answer db_input $(priority_ceil low) shared/default-x-server $OWNERS +else + db_input low shared/default-x-server || debug_echo db_input low shared/default-x-server + db_go fi # collect information about installed video card(s), if possible @@ -832,11 +836,21 @@ if [ -n $FIRSTINST ] || [ -n $RECONFIGURE ]; then fi else observe could not autodetect X server driver: $DISCOVER_PROG not found +DRIVER_LIST=vesa fi db_subst xserver-xorg/config/device/driver choices $DRIVER_LIST - auto_answer db_input $PRIORITY \ -xserver-xorg/config/device/driver $DEFAULT_DRIVER + db_subst xserver-xorg/config/device/driver default $DEFAULT_DRIVER + + if ! expr $DRIVER_LIST : .*,.* /dev/null 21; then +debug_echo \$DRIVER_LIST has only one value; xserver-xorg/config/device/driver will not be asked +auto_answer db_input $(priority_ceil low) xserver-xorg/config/device/driver $DRIVER_LIST +# FIXME Should also avoid the question for the identifier somehow + else +db_input low xserver-xorg/config/device/driver || debug_echo db_input low xserver-xorg/config/device/driver +db_go +# FIXME The default selected value is just not selected :( + fi # card identifier; try to set a sensible default DEFAULT= -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#443004: dexconf: error: cannot generate configuration, file; shared/default-x-server not
On Thu, Sep 27, 2007 at 02:53:21PM +0200, Marc Haber wrote: On Thu, Sep 20, 2007 at 01:18:26AM +0200, Peter wrote: I tested to edit directly /var/cache/debconf/config.dat I added at: shared/default-x-server Value: xserver-xorg Flags: seen And then dpkg-reconfigure xserver-xorg just fine wrote a xorg.conf file. Not for me, the Value was deleted again after re-executing dpkg-reconfigure xserver-xorg. Just another data point: I (actually a friend of mine) was also bitten by this bug today. We solved the problem by editing /var/cache/debconf/config.dat and adding Value: vserver-xorg line after Template: shared/default-x-server line (but not adding the Flags: seen line), then executing dpkg-reconfigure -phigh xserver-xorg. Before doing this, we messed around a bit, looking at the command line history, I believe before changing the debconf database, we did the following: 1. Copy an old xorg.conf into /etc/X11/. 2. Remove /etc/X11/X symlink. 3. Run dpkg-reconfigure -phigh xserver-xorg Then we changed /var/cache/debconf/config.dat and re-ran dpkg-reconfigure, and it worked. Ming 2007.10.05 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not
On Tue, Sep 18, 2007 at 07:43:01PM +0200, Julien Cristau wrote: --- a/debian/xserver-xorg.postinst.in +++ b/debian/xserver-xorg.postinst.in @@ -759,6 +759,12 @@ if [ -n $FIRSTINST ] || [ -n $RECONFIGURE ]; then db_reset xserver-xorg/config/device/$param done + # now the default-x-server question may be asked + db_fget shared/default-x-server seen + debug_echo seen flag of shared/default-x-server is $RET + debug_echo db_input $(priority_ceil low) shared/default-x-server + auto_answer db_input $(priority_ceil low) shared/default-x-server $THIS_PACKAGE + # priority of xserver-xorg/config/device/driver PRIORITY=medium if [ -n $RECONFIGURE ]; then I inserted these lines to my /var/lib/dpkg/info/xserver-xorg.postinst, with no effect. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#443004: dexconf: error: cannot generate configuration, file; shared/default-x-server not
On Thu, Sep 20, 2007 at 01:18:26AM +0200, Peter wrote: I tested to edit directly /var/cache/debconf/config.dat I added at: shared/default-x-server Value: xserver-xorg Flags: seen And then dpkg-reconfigure xserver-xorg just fine wrote a xorg.conf file. Not for me, the Value was deleted again after re-executing dpkg-reconfigure xserver-xorg. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not
Julien Cristau [EMAIL PROTECTED] (18/09/2007): I think the following patch will help […] Works for me©®™. Cheers, -- Cyril Brulebois pgp9c4qRIDwmc.pgp Description: PGP signature
Bug#443004: dexconf: error: cannot generate configuration, file; shared/default-x-server not
I tested to edit directly /var/cache/debconf/config.dat I added at: shared/default-x-server Value: xserver-xorg Flags: seen And then dpkg-reconfigure xserver-xorg just fine wrote a xorg.conf file. Thanks! cheers Peter -- /bitrunner/ *0708-460260* Andra Långgatan 28 41327 Göteborg Sweden
Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not
Package: xserver-xorg Version: 1:7.3+2 Severity: normal I tried to install x-window-system-core to use use xorg. After the debconf setup, i get this error: dexconf: error: cannot generate configuration file; shared/default-x-server not set. Aborting. Reconfigure the X server with dpkg-reconfigure to correct this problem. xserver-xorg postinst warning: error while preparing new Xorg X server configuration file in /etc/X11/xorg.conf.dpkg-new; not attempting to update existing configuration xorg.conf is actually empty. -- Package-specific info: Contents of /var/lib/x11/X.roster: xserver-xorg /etc/X11/X target does not match checksum in /var/lib/x11/X.md5sum. X server symlink status: lrwxrwxrwx 1 root root 13 2007-09-18 11:37 /etc/X11/X - /usr/bin/Xorg -rwxr-xr-x 1 root root 1669528 2007-09-16 20:56 /usr/bin/Xorg Contents of /var/lib/x11/xorg.conf.roster: xserver-xorg VGA-compatible devices on PCI bus: 00:02.0 VGA compatible controller: Unknown device 80ee:beef /etc/X11/xorg.conf does not exist. Xorg X server log files on system: -rw-r--r-- 1 root root 1026 2007-09-18 11:39 /var/log/Xorg.0.log Contents of most recent Xorg X server log file /var/log/Xorg.0.log: X.Org X Server 1.4.0 Release Date: 5 September 2007 X Protocol Version 11, Revision 0 Build Operating System: Linux Debian (xorg-server 2:1.4-2) Current Operating System: Linux acantha 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 Build Date: 16 September 2007 02:37:21PM Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Tue Sep 18 11:39:07 2007 (==) Using config file: /etc/X11/xorg.conf Data incomplete in file /etc/X11/xorg.conf At least one Screen section is required. (EE) Problem parsing the config file (EE) Error parsing the config file Fatal server error: no screens found (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xserver-xorg depends on: ii debconf [debconf-2 1.5.14Debian configuration management sy ii x11-common 1:7.3+2 X Window System (X.Org) infrastruc ii xbase-clients 1:7.3+2 miscellaneous X clients - metapack ii xkb-data 1.0~cvs.20070916-1X Keyboard Extension (XKB) configu ii xserver-xorg-core 2:1.4-2 X.Org X server -- core server ii xserver-xorg-input 1:7.3+2 the X.Org X server -- input driver ii xserver-xorg-input 1:1.2.0~git20070819-3 X.Org X server -- evdev input driv ii xserver-xorg-input 1:1.2.2-3 X.Org X server -- keyboard input d ii xserver-xorg-input 1:1.2.2-5 X.Org X server -- mouse input driv ii xserver-xorg-input 0.14.7~git20070706-1 Synaptics TouchPad driver for X.Or ii xserver-xorg-video 1:7.3+2 the X.Org X server -- output drive ii xserver-xorg-video 1:1.1.1-10X.Org X server -- APM display driv ii xserver-xorg-video 1:0.6.0-9 X.Org X server -- ark display driv ii xserver-xorg-video 1:6.6.193-3 X.Org X server -- ATI display driv ii xserver-xorg-video 1:1.1.1-9 X.Org X server -- Chips display dr ii xserver-xorg-video 1:1.1.0-8 X.Org X server -- Cirrus display d ii xserver-xorg-video 1:1.1.0-8 X.Org X server -- Cyrix display dr ii xserver-xorg-video 1:0.2.0-6 X.Org X server -- dummy display dr ii xserver-xorg-video 1:0.3.1-4 X.Org X server -- fbdev display dr ii xserver-xorg-video 1:1.1.1-8 X.Org X server -- Glint display dr ii xserver-xorg-video 1:1.2.1-4 X.Org X server -- i128 display dri ii xserver-xorg-video 1:1.1.0-7 X.Org X server -- i740 display dri ii xserver-xorg-video 1:1.1.0-7 X.Org X server -- IMSTT display dr ii xserver-xorg-video 2:2.1.1-4 X.Org X server -- Intel i8xx, i9xx ii xserver-xorg-video 1:1.4.7.dfsg.1-3 X.Org X server -- MGA display driv ii xserver-xorg-video 1:1.1.1-8 X.Org X server -- Neomagic display ii xserver-xorg-video 1:0.2.1-4 X.Org X server -- Newport display ii xserver-xorg-video 1:2.8.3-2 X.Org X server -- NSC display driv ii xserver-xorg-video 1:2.1.3-5 X.Org X server -- NV display drive ii xserver-xorg-video 1:4.1.3.dfsg.1-4 X.Org X server -- Rendition displa ii xserver-xorg-video
Bug#443004: dexconf: error: cannot generate configuration file; shared/default-x-server not
On Tue, Sep 18, 2007 at 11:51:06 +0200, pier wrote: I tried to install x-window-system-core to use use xorg. After the debconf setup, i get this error: dexconf: error: cannot generate configuration file; shared/default-x-server not set. Aborting. Reconfigure the X server with dpkg-reconfigure to correct this problem. xserver-xorg postinst warning: error while preparing new Xorg X server configuration file in /etc/X11/xorg.conf.dpkg-new; not attempting to update existing configuration xorg.conf is actually empty. Hi, this is caused by a change in 1:7.2.ds3-1 to drop the server detection code, which actually dropped too much... I think the following patch will help, and I'll commit something like that once I've tested it. It sets the shared/default-x-server variable to 'xserver-xorg', which should allow dexconf to work again (at least in theory). Cheers, Julien diff --git a/debian/changelog b/debian/changelog index 5ad2fc0..6602423 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +xorg (1:7.3+3) UNRELEASED; urgency=low + + * xserver-xorg.postinst: set the shared/default-x-server debconf variable, +since dexconf uses it (closes: #443004). + + -- Julien Cristau [EMAIL PROTECTED] Tue, 18 Sep 2007 19:36:56 +0200 + xorg (1:7.3+2) unstable; urgency=low * Upload to unstable diff --git a/debian/xserver-xorg.postinst.in b/debian/xserver-xorg.postinst.in index 887f76c..c5c9ff7 100644 --- a/debian/xserver-xorg.postinst.in +++ b/debian/xserver-xorg.postinst.in @@ -759,6 +759,12 @@ if [ -n $FIRSTINST ] || [ -n $RECONFIGURE ]; then db_reset xserver-xorg/config/device/$param done + # now the default-x-server question may be asked + db_fget shared/default-x-server seen + debug_echo seen flag of shared/default-x-server is $RET + debug_echo db_input $(priority_ceil low) shared/default-x-server + auto_answer db_input $(priority_ceil low) shared/default-x-server $THIS_PACKAGE + # priority of xserver-xorg/config/device/driver PRIORITY=medium if [ -n $RECONFIGURE ]; then -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]