[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#782753: console-setup.postinst hangs forever during upgrades to jessie



Package: console-setup
Version: 1.121
Severity: grave
Justification: breaks upgrades to jessie

Dear Maintainer,

I tried upgrading a computer via ssh from debian 7 to 8. It hang forever
in console-setup.postinst, with a zombie process.

This are the last lines printed:
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
Setting up libklibc (2.0.4-2) ...
Setting up klibc-utils (2.0.4-2) ...
Setting up cpio (2.11+dfsg-4.1) ...
Setting up kmod (18-3) ...
Setting up busybox (1:1.22.0-9+deb8u1) ...
Setting up initramfs-tools (0.120) ...
update-initramfs: deferring update (trigger activated)
Setting up xkb-data (2.12-1) ...
Setting up console-setup (1.121) ...

A ps shows:
root      2694  0.0  0.0   6468  1024 ?        Ss   Mar03   0:08
/usr/sbin/sshd
root     29796  0.0  0.1   9268  3008 ?        Ss   08:16   0:00  \_
sshd: admin [priv]
admin    29798  0.0  0.0   9400  1468 ?        S    08:16   0:00  |   \_
sshd: admin@pts/0
admin    29799  0.0  0.1   6308  3484 pts/0    Ss   08:16   0:00  |
  \_ -bash
root     29900  0.0  0.0   4208  1240 pts/0    S    08:16   0:00  |
      \_ su -
root     29902  0.0  0.1   5672  2956 pts/0    S    08:16   0:00  |
          \_ -su
root     30202  1.0  2.7 110400 57288 pts/0    Sl+  08:20   0:22  |
              \_ aptitude
root     19447  0.1  0.1   7284  3664 pts/1    Ss+  08:46   0:00  |
                  \_ /usr/bin/dpkg --status-fd 37 --configure
locales:all libc6-i686:i386 libgomp1:i386 libquadmath0:i386
libgfortran3:i386 bzip2:i386 libkeyutils1:i386 libkrb5support0:i386
libk5crypto3:i386 [truncated]
root      4876  0.0  0.5  16732 12244 pts/1    S+   08:49   0:00  |
                      \_ /usr/bin/perl -w /usr/share/debconf/frontend
/var/lib/dpkg/info/console-setup.postinst configure 1.88
root      4935  0.0  0.0      0     0 pts/1    Z+   08:49   0:00  |
                          \_ [console-setup.p] <defunct>


Opening a shell and kill -9 4876 was the trick to complete the upgrade.

console-setup is then in state: "partially configured"

I could reproduce the problem after that with a "apt-get -f install": I
always have to kill the postinst.

I modified /var/lib/dpkg/info/console-setup.postinst:
-> set -x
-> Change "setupcon --save-only" into "setupcon -v --save-only"
-> Change "setupcon" into "setupcon -v"

The output is in the attached file "console-setup.bug.txt".

The process hangs.


I also tried adding a "set -x" in "/bin/setupcon" and it did fixed the
issue, which is really weird. oO

Now I can only reproduce it with "dpkg-reconfigure console-setup":
If I use the original files it hangs, always.
If I add "set -x" on line 2 of "/bin/setupcon", it works, always.

Last thing printed before hanging is:
Loading /etc/console-setup/cached_UTF-8_del.kmap.gz

I'm attaching /etc/defaut/console-setup and
/etc/console-setup/cached_UTF-8_del.kmap.gz files.

I did not reboot after the upgrade, yet.

My /tmp is not a special mount point, permissions are standard
(drwxrwxrwt root:root), disk is not full.

Sorry to fill a RC bug so close to the release, fell free to downgrade
it if you believe it's not a common problem.



-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages console-setup depends on:
ii  console-setup-linux     1.121
ii  debconf                 1.5.56
ii  keyboard-configuration  1.121
ii  xkb-data                2.12-1

console-setup recommends no packages.


Versions of packages console-setup suggests:
ii  locales   2.19-17
ii  lsb-base  4.1+Debian13+nmu1

Versions of packages keyboard-configuration depends on:
ii  debconf                 1.5.56
ii  initscripts             2.88dsf-59
ii  liblocale-gettext-perl  1.05-8+b1

Versions of packages console-setup-linux depends on:
ii  kbd                     1.15.5-2
ii  keyboard-configuration  1.121

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn  console-common  <none>
pn  console-data    <none>
pn  console-tools   <none>
ii  kbd             1.15.5-2

-- debconf information:
  keyboard-configuration/unsupported_layout: true
  console-setup/framebuffer_only:
  keyboard-configuration/other:
  keyboard-configuration/unsupported_config_options: true
  keyboard-configuration/layoutcode: fr
  console-setup/guess_font:
  keyboard-configuration/store_defaults_in_debconf_db: true
  keyboard-configuration/model: Generic 105-key (Intl) PC
  console-setup/store_defaults_in_debconf_db: false
  debian-installer/console-setup-udeb/title:
  console-setup/fontsize: 8x16
  keyboard-configuration/toggle: No toggling
  keyboard-configuration/variantcode:
  console-setup/use_system_font:
  console-setup/fontface47: Fixed
  console-setup/codesetcode: guess
  keyboard-configuration/modelcode: pc105
* console-setup/codeset47: Guess optimal character set
  keyboard-configuration/switch: No temporary switch
  keyboard-configuration/compose: No compose key
  console-setup/fontsize-fb47: 8x16
  keyboard-configuration/unsupported_options: true
  keyboard-configuration/optionscode:
* keyboard-configuration/variant: French
  keyboard-configuration/unsupported_config_layout: true
  keyboard-configuration/altgr: The default for the keyboard layout
  console-setup/fontsize-text47: 8x16
* keyboard-configuration/layout: French
  keyboard-configuration/xkb-keymap: fr
* console-setup/charmap47: UTF-8
  keyboard-configuration/ctrl_alt_bksp: false
# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up console-setup (1.121) ...
+ . /usr/share/debconf/confmodule
+ [ !  ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [  ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/console-setup.postinst configure 1.88
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ CONFIGDIR=/etc/console-setup
+ CONFIGFILE=/etc/default/console-setup
+ [ ! -L /usr/share/doc/console-setup ]
+ [ configure = configure -a ! -L /etc/default/console-setup ]
+ db_get console-setup/codesetcode
+ _db_cmd GET console-setup/codesetcode
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n GET console-setup/codesetcode
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=guess
+ return 0
+ codeset=guess
+ db_get console-setup/fontface47
+ _db_cmd GET console-setup/fontface47
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n GET console-setup/fontface47
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=Fixed
+ return 0
+ fontface=Fixed
+ db_metaget console-setup/use_system_font description
+ _db_cmd METAGET console-setup/use_system_font description
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n METAGET console-setup/use_system_font description
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=Do not change the boot/kernel font
+ return 0
+ [ Fixed = Do not change the boot/kernel font ]
+ db_metaget console-setup/guess_font description
+ _db_cmd METAGET console-setup/guess_font description
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n METAGET console-setup/guess_font description
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=Let the system select a suitable font
+ return 0
+ [ Fixed = Let the system select a suitable font ]
+ db_get console-setup/fontsize
+ _db_cmd GET console-setup/fontsize
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n GET console-setup/fontsize
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=8x16
+ return 0
+ fontsize=8x16
+ [ -z Fixed ]
+ db_get console-setup/charmap47
+ _db_cmd GET console-setup/charmap47
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n GET console-setup/charmap47
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=UTF-8
+ return 0
+ charmap=UTF-8
+ [ ! -e /etc/default/console-setup ]
+ . /etc/default/console-setup
+ ACTIVE_CONSOLES=/dev/tty[1-6]
+ CHARMAP=UTF-8
+ CODESET=guess
+ FONTFACE=Fixed
+ FONTSIZE=8x16
+ VIDEOMODE=
+ CONSOLE_MAP=
+ grep ^ *XKBLAYOUT= /etc/default/console-setup
+ grep ^ *CHARMAP= /etc/default/console-setup
+ cp -a -f /etc/default/console-setup /etc/default/console-setup.tmp
+ grep ^ *ACTIVE_CONSOLES= /etc/default/console-setup
+ grep ^ *CHARMAP= /etc/default/console-setup
+ grep ^ *CODESET= /etc/default/console-setup
+ grep ^ *FONTFACE= /etc/default/console-setup
+ grep ^ *FONTSIZE= /etc/default/console-setup
+ [  ]
+ [  ]
+ [  ]
+ sed -e s|^ *ACTIVE_CONSOLES=.*|ACTIVE_CONSOLES="/dev/tty[1-6]"| -e s|^ *FONT=.*|FONT=""| -e s|^ *FONT_MAP=.*|FONT_MAP=""| -e s|^ *CONSOLE_MAP=.*|CONSOLE_MAP=""| -e s|^ *ACM=.*|CONSOLE_MAP=""| -e s|^ *CHARMAP=.*|CHARMAP="UTF-8"| -e s|^ *CODESET=.*|CODESET="guess"| -e s|^ *FONTFACE=.*|FONTFACE="Fixed"| -e s|^ *FONTSIZE=.*|FONTSIZE="8x16"|
+ mv -f /etc/default/console-setup.tmp /etc/default/console-setup
+ db_set console-setup/store_defaults_in_debconf_db true
+ _db_cmd SET console-setup/store_defaults_in_debconf_db true
+ _db_internal_IFS= 	

+ IFS= 
+ printf %s\n SET console-setup/store_defaults_in_debconf_db true
+ IFS= 	

+ IFS=
 read -r _db_internal_line
+ RET=value set
+ return 0
+ setupcon -v --save-only
Configuring /dev/tty1 /dev/tty2 /dev/tty3 /dev/tty4 /dev/tty5 /dev/tty6 
The charmap is UTF-8 
BackSpace is ^? 
+ setupcon -v
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading 512-char 8x16 font from file /etc/console-setup/Uni2-Fixed16.psf.gz
Loading Unicode mapping table...
Loading /tmp/tmpkbd.NDS5Ru

# CONFIGURATION FILE FOR SETUPCON

# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"

CHARMAP="UTF-8"

CODESET="guess"
FONTFACE="Fixed"
FONTSIZE="8x16"

VIDEOMODE=

# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'

Attachment: cached_UTF-8_del.kmap.gz
Description: application/gzip

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: