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

Bug#536683: keyboard-configuration postinst stuck in loop



Package: keyboard-configuration
Version: 1.47
Severity: normal

found 536683 1.47
thanks

This still happens here for me.
Moving xorg.conf out of the way doesn't help.

Note: I just realized that this bug was reported against console-setup
while I'm seeing it in keyboard-configuration with console-setup-mini.

Enabling debconf debugging seems to cycle:
debconf (developer): <-- SUBST keyboard-configuration/layout CHOICES Afghanistan, Albania, Andorra, Arabic, Armenia, Azerbaijan, Bangladesh, Belarus, Belgium, Bhutan, Bosnia and Herzegovina, Braille, Brazil, Bulgaria, Cambodia, Canada, China, Congo\, Democratic Republic of the, Croatia, Czechia, Denmark, Esperanto, Estonia, Ethiopia, Faroe Islands, Finland, France, Georgia, Germany, Ghana, Greece, Guinea, Hungary, Iceland, India, Iran, Iraq, Ireland, Israel, Italy, Japan, Japan (PC-98xx Series), Kazakhstan, Korea\, Republic of, Kyrgyzstan, Laos, Latin American, Latvia, Lithuania, Macedonia, Maldives, Malta, Maori, Mongolia, Montenegro, Morocco, Myanmar, Nepal, Netherlands, Nigeria, Norway, Pakistan, Poland, Portugal, Romania, Russia, Senegal, Serbia, Slovakia, Slovenia, South Africa, Spain, Sri Lanka, Sweden, Switzerland, Syria, Tajikistan, Thailand, Turkey, Turkmenistan, USA, Ukraine, United Kingdom, Uzbekistan, Vietnam
debconf (developer): --> 0
debconf (developer): <-- SET keyboard-configuration/layout USA
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium keyboard-configuration/layout
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET keyboard-configuration/layout
debconf (developer): --> 0 USA
debconf (developer): <-- METAGET keyboard-configuration/other description
debconf (developer): --> 0 Other
debconf (developer): <-- SUBST keyboard-configuration/variant CHOICES Other, USA, USA - Alternative international (former us_intl), USA - Cherokee, USA - Classic Dvorak, USA - Colemak, USA - Dvorak, USA - Dvorak international, USA - Group toggle on multiply/divide key, USA - International (AltGr dead keys), USA - International (with dead keys), USA - Left handed Dvorak, USA - Macintosh, USA - Programmer Dvorak, USA - Right handed Dvorak, USA - Russian phonetic, USA - With EuroSign on 5
debconf (developer): --> 0
debconf (developer): <-- SET keyboard-configuration/variant Other
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT medium keyboard-configuration/variant
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET keyboard-configuration/variant
debconf (developer): --> 0 Other
[...]

Note that I didn't choose "Other" in the first place. Could it be that
the script tries to interpret "Other" as 'Go back to previous menu', but
then just gets the cached debconf options again, thus ending up stuck
in this menu loop of going into USA and back via "Other"?

Whoever wrote this line:
  elif default_variant="$RET" && [ "$RET" = other ]; then
should be shot. Seriously, this script is one of the worst with respect to
code readability I've seen in a long time. No wonder it doesn't work.

P.S.
I got keyboard-configuration to install by doing the following changes:
1. Removing the embedded assignment from the elif statement
2. Removing the conditional leading to "exit 10".
I ended up with a sensible /etc/default/keyboard so I guess it worked as
expected then.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages keyboard-configuration depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy

keyboard-configuration recommends no packages.

keyboard-configuration suggests no packages.

-- debconf information:
* keyboard-configuration/layout: USA
* keyboard-configuration/variant: USA - mit Euro-Symbol auf »5«
  keyboard-configuration/unsupported_options: true
  keyboard-configuration/optionscode: compose:caps,terminate:ctrl_alt_bksp
  keyboard-configuration/modelcode: pc104
  keyboard-configuration/unsupported_config_options: true
  keyboard-configuration/toggle: No toggling
* keyboard-configuration/altgr: The default for the keyboard layout
  keyboard-configuration/unsupported_layout: true
  keyboard-configuration/layoutcode: us
  debian-installer/console-setup-udeb/title:
* keyboard-configuration/ctrl_alt_bksp: true
  keyboard-configuration/variantcode: euro
  keyboard-configuration/other:
  keyboard-configuration/unsupported_config_layout: true
* keyboard-configuration/compose: Caps Lock
  keyboard-configuration/switch: No temporary switch
* keyboard-configuration/model:



Reply to: