I tested this using Steve's more minimal test case from #ubuntu-release
(https://irclogs.ubuntu.com/2021/09/14/%23ubuntu-release.html#t16:25)
and did not receive a crash with the version of ubuntu-drivers-common
from -proposed.

Setting up ubuntu-drivers-common (1:0.8.6.3~0.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
(bionic-amd64)root@impulse:/home/bdmurray/# LANG=pl_PL.UTF-8 ubuntu-drivers 
autoinstall         WARNING:root:_pkg_get_support nvidia-driver-390: package 
has invalid Support Legacyheader, cannot determine support level
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
...

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-drivers-common in Ubuntu.
https://bugs.launchpad.net/bugs/1943614

Title:
  ubuntu-drivers crashes in python3-click when ubiquity runs the Polish
  language (locale)

Status in ubiquity package in Ubuntu:
  Invalid
Status in ubuntu-drivers-common package in Ubuntu:
  Invalid
Status in ubiquity source package in Bionic:
  Confirmed
Status in ubuntu-drivers-common source package in Bionic:
  Fix Committed

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/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


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to