Bug#845398: x11-common: Can't configure

2016-11-22 Thread Tianon Gravi
On Wed, 23 Nov 2016 01:53:45 +0100 Samuel Thibault  wrote:
> I guess what was meant was rather
>
> db_unregister x11-common/xwrapper/allowed_users
> db_unregister x11-common/xwrapper/actual_allowed_users

I tested this locally just to see if I could get past the configure
failure, and the fix will probably need to go one step further with
either "|| :" / "|| true" or an explicit "if ! db_unregister ...; then
# do something about it; fi"

> $ sudo DEBCONF_DEBUG=developer dpkg --configure x11-commonSetting up 
> x11-common (1:7.7+17) ...
> debconf (developer): frontend started
> debconf (developer): frontend running, package name is x11-common
> debconf (developer): starting /var/lib/dpkg/info/x11-common.postinst 
> configure 1:7.7+16
> debconf (developer): <-- UNREGISTER x11-common/xwrapper/allowed_users
> debconf (developer): --> 10 x11-common/xwrapper/allowed_users doesn't exist
> dpkg: error processing package x11-common (--configure):
> subprocess installed post-installation script returned error exit status 10
> Errors were encountered while processing:
>  x11-common

After changing to the following, I was successful in completing the
configure of x11-common:

> db_unregister x11-common/xwrapper/allowed_users || :
> db_unregister x11-common/xwrapper/actual_allowed_users || :

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



Bug#845398: x11-common: Can't configure

2016-11-22 Thread Michael Biebl
Package: x11-common
Version: 1:7.7+17
Followup-For: Bug #845398


Attached is a log file of running x11-common.postinst with set -x



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages x11-common depends on:
ii  lsb-base  9.20161101

x11-common recommends no packages.

x11-common suggests no packages.

-- Configuration Files:
/etc/X11/Xsession.d/20x11-common_process-args changed [not included]

-- debconf information:
  x11-common/xwrapper/allowed_users: Console Users Only
  x11-common/xwrapper/actual_allowed_users: console
Setting up x11-common (1:7.7+17) ...
+ '[' -f /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/x11-common.postinst 
configure 1:7.7+16
+ '[' -f /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_purge x11-common/xwrapper/allowed_users
+ _db_cmd 'PURGE x11-common/xwrapper/allowed_users'
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'PURGE x11-common/xwrapper/allowed_users'
+ IFS=' 
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='20 Incorrect number of arguments'
+ case ${_db_internal_line%%[   ]*} in
+ return 20
dpkg: error processing package x11-common (--configure):
 subprocess installed post-installation script returned error exit status 20
dpkg: dependency problems prevent configuration of xserver-common:
 xserver-common depends on x11-common; however:
  Package x11-common is not configured yet.

dpkg: error processing package xserver-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xvfb:
 xvfb depends on xserver-common (>= 2:1.19.0-1); however:
  Package xserver-common is not configured yet.

dpkg: error processing package xvfb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xfonts-utils:
 xfonts-utils depends on x11-common; however:
  Package x11-common is not configured yet.

dpkg: error processing package xfonts-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xephyr:
 xserver-xephyr depends on xserver-common (>= 2:1.19.0-1); however:
  Package xserver-common is not configured yet.

dpkg: error processing package xserver-xephyr (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xwayland:
 xwayland depends on xserver-common (>= 2:1.19.0-1); however:
  Package xserver-common is not configured yet.

dpkg: error processing package xwayland (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xorg:
 xorg depends on xfonts-utils; however:
  Package xfonts-utils is not configured yet.

dpkg: error processing package xorg (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 x11-common
 xserver-common
 xvfb
 xfonts-utils
 xserver-xephyr
 xwayland
 xorg


Bug#845398: x11-common: Can't configure

2016-11-22 Thread Samuel Thibault
Package: x11-common
Version: 1:7.7+17
Severity: grave
Justification: renders package unusable

Hello,

x11-common can't be installed any more now that x11-common.postinst has
set -e:

Setting up x11-common (1:7.7+17) ...
dpkg: error processing package x11-common (--configure):
 subprocess installed post-installation script returned error exit status 20
Errors were encountered while processing:
 x11-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is because postinst calls

db_purge x11-common/xwrapper/allowed_users
db_purge x11-common/xwrapper/actual_allowed_users

According to debconf-devel(7), the PURGE command doesn't take any
parameter, it is not meant to remove just one entry.

I guess what was meant was rather

db_unregister x11-common/xwrapper/allowed_users
db_unregister x11-common/xwrapper/actual_allowed_users

to remove those old entries.

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages x11-common depends on:
ii  lsb-base  9.20161101

x11-common recommends no packages.

x11-common suggests no packages.

-- debconf information:
  x11-common/xwrapper/actual_allowed_users: anybody
* x11-common/xwrapper/allowed_users: Anybody

-- 
Samuel
 je viens d'inventer mutt version magritte :D
 ?
 dans mutt
 tape "cceci" return