Installing Ubuntu 23.04 Beta crashed when selected different language from Keyboard Layout Screen (unknown keyboard layout us,ara)

Bug #2015028 reported by amjjawad 
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Olivier Gayot

Bug Description

I downloaded the Desktop Image - 64-bit PC (AMD64) desktop image.

The size of the Desktop Image is 4.8 GB.

I checked SHA256SUMS - all good.

I used [Make Startup Disk] which is installed by default on my Ubuntu to create the LiveUSB.

My Testing machine is HP EliteDesk 800 G2 SFF. Core i5 vPro with 8GB RAM and 256GB SSD.

As always, I selected [Try Ubuntu]. The look and feel is quite amazing.

The machine I'm using to test is an old Desktop.

Because I want to keep Windows for games, I need to Dual-boot. That is why I ran GParted.

I had to delete one of the (4) partitions so I got rid of the [HP Tool] Drive.

I already cleared more than 70GB from the entire Disk (SSD) before I start the test. All what I needed to do is to resize and shrink.

I created an Extended Partition. Inside, I created (2) Partitions for Ubuntu 23.04 Beta. One is the main (/) and the other is SWAP. YES, this is my approach. I always use GParted to prepare the Disk before I start the installation whether I'm testing or not.

I really like how the Installer looks like. Really beautiful. Well done!

Without being connected to the Internet, I started the installation.

All went well until I reached to [Keyboard Layout] screen. I thought to change the language to test but I got an error message: [System program problem detected - do you want to report the problem now?]. Because I wasn't connected to the Internet, I didn't report.

As always, I selected Manual Installation. Remember, I need to Dual-Boot and I don't want any surprises, given it is the Beta version and not yet final.

When I selected the Partitions and was trying to go to the next step, I got the exact error message [System program problem detected] and I couldn't move forward. I had to stop.

The USB I used to test and install Ubuntu 23.04 Beta is in a good shape. I doubled check the SHA256SUMS. I'm not yet sure what the real problem is.

While this attempt has [Failed], I will try again. If the same issue occur, I will report the bug.

The MOST important step in OS testing is the Installation Step. What an OS without being installed on a machine?

Update:
I tried again on a different machine - the exact same problem.

Thank you.

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 6.2.0-18.18-generic 6.2.6
Uname: Linux 6.2.0-18-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.480
Date: Mon Apr 3 03:20:47 2023
ExecutablePath: /snap/ubuntu-desktop-installer/892/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-installer/892/usr/bin/python3.10
LiveMediaBuild: Ubuntu 23.04 "Lunar Lobster" - Beta amd64 (20230329)
MachineType: LENOVO 20079
ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-installer/892/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/hostname-desktop-installer/892/etc/subiquity/postinst.d
ProcEnviron:
 LANG=C.UTF-8
 LD_LIBRARY_PATH=<set>
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz layerfs-path=minimal.standard.live.squashfs --- quiet splash
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
SnapChannel:

SnapRevision: 892
SnapUpdated: False
SnapVersion: 0+git.afb2b470
SourcePackage: subiquity
Title: request to /keyboard crashed with ValueError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/28/2011
dmi.bios.release: 1.24
dmi.bios.vendor: LENOVO
dmi.bios.version: 40CN24WW(V2.10)
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Base Board Product Name
dmi.board.vendor: LENOVO
dmi.board.version: Base Board Version
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Chassis Manufacturer
dmi.chassis.version: Chassis Version
dmi.ec.firmware.release: 2.24
dmi.modalias: dmi:bvnLENOVO:bvr40CN24WW(V2.10):bd06/28/2011:br1.24:efr2.24:svnLENOVO:pn20079:pvrLenovoG570:rvnLENOVO:rnBaseBoardProductName:rvrBaseBoardVersion:cvnChassisManufacturer:ct10:cvrChassisVersion:skuHuronRiver_CRB:
dmi.product.family: IDEAPAD
dmi.product.name: 20079
dmi.product.sku: HuronRiver_CRB
dmi.product.version: Lenovo G570
dmi.sys.vendor: LENOVO

Revision history for this message
amjjawad  (amjjawad) wrote :
Olivier Gayot (ogayot)
summary: Installing Ubuntu 23.04 Beta crashed when selected different language
- from Keyboard Layout Screen
+ from Keyboard Layout Screen (unknown keyboard layout us,ara)
Revision history for this message
Olivier Gayot (ogayot) wrote :

The following HTTP request used to succeed:

POST /keyboard
{"layout": "ara"}

but now fails with:

  File "/home/olivier/dev/canonical/subiquity/subiquity/models/keyboard.py", line 90, in setting
    self.validate_setting(value)
  File "/home/olivier/dev/canonical/subiquity/subiquity/models/keyboard.py", line 96, in validate_setting
    raise ValueError(f'Unknown keyboard layout "{setting.layout}"')
ValueError: Unknown keyboard layout "us,ara"

since the following commit https://github.com/canonical/subiquity/commit/13cae2488ed6a04b373e3cdc75593f099b77104a

Next step is to determine if "layout": "ara" is correct in this context, or if it needs to be adjusted accordingly.

Changed in subiquity:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Olivier Gayot (ogayot)
Revision history for this message
Olivier Gayot (ogayot) wrote :

Reproduced on the text/server installer.

Changed in subiquity:
assignee: Olivier Gayot (ogayot) → nobody
amjjawad  (amjjawad)
information type: Private → Public Security
Revision history for this message
Dan Bungert (dbungert) wrote :

Looks like the bug marked as a Public Security bug, I assume just a regular Public bug was intended?

amjjawad  (amjjawad)
information type: Public Security → Public
Olivier Gayot (ogayot)
Changed in subiquity:
assignee: nobody → Olivier Gayot (ogayot)
status: Confirmed → In Progress
Revision history for this message
Olivier Gayot (ogayot) wrote :
Olivier Gayot (ogayot)
Changed in subiquity:
status: In Progress → Fix Committed
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.

Changed in subiquity:
status: Fix Committed → Fix Released
Revision history for this message
amjjawad  (amjjawad) wrote :

Thank you, I confirm that the issue has been solved. However, if the partition table is GPT, there is no way I can install and yes, I'm referring to the final release, that is Ubuntu 23.04 and I had the exact same issue with the daily build 17-April-2023. I had to create a new partition table via GParted (msdos) and reboot. Only then, I managed to install normally. Hope that helps!

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

Other bug subscribers

Remote bug watches

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