[Bug 1943614] [NEW] ubuntu-drivers crashes due to click when ubiquity runs the Polish language (locale)
Łukasz Zemczak
1943614 at bugs.launchpad.net
Tue Sep 14 15:01:12 UTC 2021
Public bug reported:
[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.
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/ubuntu-drivers", line 480, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env
'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://click.pocoo.org/python3/for mitigation steps.
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.
** Affects: ubiquity (Ubuntu)
Importance: Critical
Status: New
** Description changed:
[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.
+ 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.
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/ubuntu-drivers", line 480, in <module>
- greet()
- File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
- return self.main(*args, **kwargs)
- File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main
- _verify_python3_env()
- File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env
- 'for mitigation steps.' + extra)
+ File "/usr/bin/ubuntu-drivers", line 480, in <module>
+ greet()
+ File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
+ return self.main(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main
+ _verify_python3_env()
+ File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env
+ '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://click.pocoo.org/python3/for mitigation steps.
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
+ 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.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1943614
Title:
ubuntu-drivers crashes due to click when ubiquity runs the Polish
language (locale)
Status in ubiquity package in Ubuntu:
New
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.
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/ubuntu-drivers", line 480, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 118, in _verify_python3_env
'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://click.pocoo.org/python3/for mitigation steps.
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1943614/+subscriptions
More information about the foundations-bugs
mailing list