Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Subiquity fails to run setxkbmap #832

Closed
jpnurmi opened this issue May 13, 2022 · 3 comments · Fixed by #1021
Closed

Subiquity fails to run setxkbmap #832

jpnurmi opened this issue May 13, 2022 · 3 comments · Fixed by #1021

Comments

@jpnurmi
Copy link
Contributor

jpnurmi commented May 13, 2022

Steps:

  • download daily canary 20220513
  • run the installer and select a keyboard layout

/var/log/installer/subiquity-server-debug.log:

2022-05-13 09:36:18,574 DEBUG subiquity.server.controllers.keyboard:225 KeyboardSetting(layout='fi', variant='', toggle=None)
2022-05-13 09:36:18,574 DEBUG subiquitycore.utils:77 arun_command called: ['setupcon', '--save', '--force', '--keyboard-only']
2022-05-13 09:36:18,861 DEBUG subiquitycore.utils:86 arun_command ['setupcon', '--save', '--force', '--keyboard-only'] exited with code 0
2022-05-13 09:36:18,861 DEBUG subiquitycore.utils:77 arun_command called: ['/snap/ubuntu-desktop-installer/409/bin/subiquity/bin/subiquity-loadkeys']
2022-05-13 09:36:18,864 DEBUG subiquitycore.utils:86 arun_command ['/snap/ubuntu-desktop-installer/409/bin/subiquity/bin/subiquity-loadkeys'] exited with code 0
2022-05-13 09:36:18,864 DEBUG subiquitycore.utils:77 arun_command called: ['setxkbmap', '-layout', 'fi']
2022-05-13 09:36:18,867 DEBUG subiquitycore.utils:86 arun_command ['setxkbmap', '-layout', 'fi'] exited with code 1
2022-05-13 09:36:18,867 DEBUG subiquity.models.subiquity:202 model keyboard for install stage is configured, to go {'filesystem'}

Running the same setxkbmap -layout xx command in the terminal works, though.

@mwhudson
Copy link
Collaborator

Is this because setkbmap needs to talk to X?

@bittin
Copy link
Contributor

bittin commented May 16, 2022

Had this problem with the 0515 image too

@bittin
Copy link
Contributor

bittin commented May 31, 2022

Still broken in the 0530 image

jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 21, 2022
Subiquity has been changed to run setxkbmap as the ubuntu user. The
last missing piece is to set the DISPLAY environment variable to let
setxkbmap access the display.

Fixes: canonical#832
jpnurmi added a commit to jpnurmi/ubuntu-desktop-installer that referenced this issue Jul 21, 2022
Subiquity has been changed to run setxkbmap as the ubuntu user. The
last missing piece is to set the DISPLAY environment variable to let
setxkbmap access the display.

Fixes: canonical#832
jpnurmi added a commit that referenced this issue Aug 9, 2022
Subiquity has been changed to run setxkbmap as the ubuntu user. The
last missing piece is to set the DISPLAY environment variable to let
setxkbmap access the display.

Fixes: #832
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants