ubuntu-drivers crashes in python3-click when ubiquity runs the Polish language (locale)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Invalid
|
Critical
|
Unassigned | ||
Bionic |
Confirmed
|
Critical
|
Łukasz Zemczak | ||
ubuntu-drivers-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Ok, first of all - I am unsure if this is a regression or not, since I did not test extra drivers with old images. I'm testing this on kvm now.
So far this bug appeared for me when I was running ubiquity with secureboot enabled on a NVidia GPU machine.
Note: this only happens when the language selection is done on the Ubiquity screen. If you get the language right in the isolinux menu, everything works.
Basically when installing Ubuntu desktop on a system that uses ubuntu-drivers but using a non-standard locale (like in my case, the Polish language from the language selector), ubuntu-drivers will crash with:
`
Traceback (most recent call last):
File "/usr/bin/
greet()
File "/usr/lib/
return self.main(*args, **kwargs)
File "/usr/lib/
_verify_
File "/usr/lib/
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://
This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the
following environment variables:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
Click discovered that you exported a UTF-8 locale
but the locale system could not pick up from it because
it does not exist. The exported locale is "pl_PL.UTF-8" but it
is not supported
ubuntu-drivers autoinstall failed with code: 1
`
[Test Case]
* Download latest 18.04.6 candidate image for ubuntu-desktop
* In language selector, select Polish (Polski)
* Proceed with the installation and checking "Install third-party software..."
* Boot into the installed system
* Check if `ubuntu-drivers install ...` succeeded during installation, checking the installer syslog.
description: | updated |
Changed in ubiquity (Ubuntu Bionic): | |
importance: | Undecided → Critical |
Changed in ubiquity (Ubuntu): | |
status: | New → Invalid |
Changed in ubiquity (Ubuntu Bionic): | |
status: | New → Confirmed |
assignee: | nobody → Łukasz Zemczak (sil2100) |
This can be also easily checked on kvm without doing a full install. Just boot up the image, wait for ubiquity to pop up, select the language, select installing. Then check the third party drivers (disable updates from internet), click Next. Then switch to another terminal, log in as 'ubuntu' and check /var/lib/syslog - you should see that ubuntu-drivers crashed with the error above. It looks like ubiquity doesn't set the locale fully?