invalid keyboard layout value results in setupcon error

Bug #2008271 reported by Ken VanDine
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Dan Bungert

Bug Description

Using an autoinstall from the 22.04.1 server iso, and refresh-installer true we get this crash

ProblemType: Bug
DistroRelease: Ubuntu 22.04
ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39
Uname: Linux 5.15.0-43-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.470
CrashDB:
 {
        "impl": "launchpad",
        "project": "subiquity",
        "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml"
     }
CurtinAptConfig: /var/log/installer/subiquity-curtin-apt.conf
Date: Thu Feb 23 15:20:36 2023
ExecutablePath: /snap/subiquity/4380/lib/python3.8/site-packages/subiquity/cmd/server.py
InterpreterPath: /snap/subiquity/4380/usr/bin/python3.8
LiveMediaBuild: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
MachineType: FUJITSU LIFEBOOK E744
ProcAttrCurrent: snap.subiquity.subiquity-server (complain)
ProcCmdline: /snap/subiquity/4380/usr/bin/python3.8 -m subiquity.cmd.server
ProcEnviron:
 PATH=(custom, no user)
 LANG=C.UTF-8
ProcKernelCmdLine: vmlinuz initrd=initrd ip=dhcp url=http://boot.linuxgroove.com/ubuntu/22.04/iso/../install.iso cloud-config-url=/dev/null autoinstall ds=nocloud-net;s=http://boot.linuxgroove.com/ubuntu/22.04/ echo Booting Ubuntu 22.04 installer...
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
Snap: subiquity 23.02.1 (latest/stable)
Snap.Changes:
 ID Status Spawn Ready Summary
 4 Done 2023-02-23T15:19:15Z 2023-02-23T15:19:15Z Switch "subiquity" snap to channel "stable"
 5 Done 2023-02-23T15:19:16Z 2023-02-23T15:19:21Z Refresh "subiquity" snap
 6 Done 2023-02-23T15:19:25Z 2023-02-23T15:19:25Z Switch "subiquity" snap to channel "stable"
Snap.Connections:

SnapChannel: latest/stable
SnapRevision: 4380
SnapSource: subiquity
SnapUpdated: True
SnapVersion: 23.02.1
Title: install failed crashed with CalledProcessError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/06/2015
dmi.bios.release: 1.23
dmi.bios.vendor: FUJITSU // Phoenix Technologies Ltd.
dmi.bios.version: Version 1.23
dmi.board.name: FJNB26F
dmi.board.vendor: FUJITSU
dmi.board.version: P3
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU//PhoenixTechnologiesLtd.:bvrVersion1.23:bd08/06/2015:br1.23:svnFUJITSU:pnLIFEBOOKE744:pvr:rvnFUJITSU:rnFJNB26F:rvrP3:cvnFUJITSU:ct10:cvr:sku:
dmi.product.name: LIFEBOOK E744
dmi.sys.vendor: FUJITSU

Revision history for this message
Ken VanDine (ken-vandine) wrote :
information type: Private → Public
Dan Bungert (dbungert)
tags: added: fr-3506
Revision history for this message
Dan Bungert (dbungert) wrote :

mwhudson wondered if https://github.com/tytso/e2fsprogs/commit/ca340221b9f324fd5b12be485f729bd5101d5c14 would help, we should consider trying that

Revision history for this message
Dan Bungert (dbungert) wrote :
Revision history for this message
Dan Bungert (dbungert) wrote :

`layout: en` was used, which was an invalid layout value. `layout: us` may be what was desired.

summary: - install failed crashed with CalledProcessError (after refresh-installer
- used in autoinstall)
+ invalid keyboard layout value results in setupcon error
Changed in subiquity:
status: New → Triaged
Dan Bungert (dbungert)
Changed in subiquity:
assignee: nobody → Dan Bungert (dbungert)
status: Triaged → In Progress
Dan Bungert (dbungert)
Changed in subiquity:
status: In Progress → Fix Released
Revision history for this message
Dan Bungert (dbungert) wrote :

We believe this issue has been resolved in Subiquity 23.04.2.

If you had tested this with a pre-final version of Ubuntu 23.04, it's
recommended to download the final install media.

For testing with Ubuntu Server 22.04.x or 20.04.x, when running
Subiquity, you should offered a new version of the installer. Please
take that update to version 23.04.2 or later to get the fix.

If this is still a problem for you, please make a comment and set the state
back to New. Thank you for the bug report.

Revision history for this message
Amit (amittar) wrote (last edit ):

Is it possible to create a fix for 22.04.x version as well?

Revision history for this message
Dan Bungert (dbungert) wrote :

Hi @Amit,

So the fix in question is just a clearer error up front that the layout value is invalid. You can resolve this today with your existing version by fixing the layout value. We will merge this fix though when the 22.04.3 release is done, or by allowing Subiquity to update itself to the latest version.

`layout: en` is invalid, `layout: us` is one possible alternative. Please see /usr/share/X11/xkb/rules/base.lst for a list of known keyboard layouts.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.