2022-10-15 02:24:33 |
Seth Arnold |
bug |
|
|
added bug |
2022-10-15 04:42:55 |
Onno |
bug |
|
|
added subscriber Onno |
2022-10-15 05:10:41 |
Onno |
attachment added |
|
screenshot-1.png https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1993019/+attachment/5624257/+files/screenshot-1.png |
|
2022-10-15 19:05:37 |
Launchpad Janitor |
ubuntu-drivers-common (Ubuntu): status |
New |
Confirmed |
|
2022-10-17 08:33:37 |
Sebastien Bacher |
tags |
|
rls-jj-incoming |
|
2022-10-26 01:09:59 |
Ethan Paoletti |
bug |
|
|
added subscriber Ethan Paoletti |
2022-10-28 15:37:08 |
Yohn Chrichton |
bug |
|
|
added subscriber Yohn Chrichton |
2022-11-13 13:07:28 |
Ikuya Awashiro |
bug |
|
|
added subscriber Ikuya Awashiro |
2023-01-05 13:59:06 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu): assignee |
|
Alberto Milone (albertomilone) |
|
2023-01-05 13:59:12 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu): importance |
Undecided |
High |
|
2023-01-13 16:27:47 |
Alberto Milone |
nominated for series |
|
Ubuntu Kinetic |
|
2023-01-13 16:27:47 |
Alberto Milone |
bug task added |
|
ubuntu-drivers-common (Ubuntu Kinetic) |
|
2023-01-13 16:27:47 |
Alberto Milone |
nominated for series |
|
Ubuntu Focal |
|
2023-01-13 16:27:47 |
Alberto Milone |
bug task added |
|
ubuntu-drivers-common (Ubuntu Focal) |
|
2023-01-13 16:27:47 |
Alberto Milone |
nominated for series |
|
Ubuntu Jammy |
|
2023-01-13 16:27:47 |
Alberto Milone |
bug task added |
|
ubuntu-drivers-common (Ubuntu Jammy) |
|
2023-01-13 16:27:47 |
Alberto Milone |
nominated for series |
|
Ubuntu Bionic |
|
2023-01-13 16:27:47 |
Alberto Milone |
bug task added |
|
ubuntu-drivers-common (Ubuntu Bionic) |
|
2023-01-13 16:27:54 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu): status |
Confirmed |
Fix Released |
|
2023-01-13 16:27:59 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Kinetic): status |
New |
In Progress |
|
2023-01-13 16:28:01 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Jammy): status |
New |
In Progress |
|
2023-01-13 16:28:04 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Focal): status |
New |
In Progress |
|
2023-01-13 16:28:06 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Bionic): status |
New |
In Progress |
|
2023-01-13 16:28:09 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Bionic): assignee |
|
Alberto Milone (albertomilone) |
|
2023-01-13 16:28:10 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Focal): assignee |
|
Alberto Milone (albertomilone) |
|
2023-01-13 16:28:13 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Jammy): assignee |
|
Alberto Milone (albertomilone) |
|
2023-01-13 16:28:14 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Kinetic): assignee |
|
Alberto Milone (albertomilone) |
|
2023-01-13 16:28:16 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Bionic): importance |
Undecided |
High |
|
2023-01-13 16:28:18 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Focal): importance |
Undecided |
High |
|
2023-01-13 16:28:20 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Jammy): importance |
Undecided |
High |
|
2023-01-13 16:28:22 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Kinetic): importance |
Undecided |
High |
|
2023-02-23 16:41:41 |
Alberto Milone |
description |
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* debian/rules:
- Limit the tests to the selected architectures (amd64, arm64).
This prevents armhf builds from failing.
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex and unify package name parsing in the following
functions by using the new NvidiaPkgNameInfo class:
nvidia_desktop_pre_installation_hook,
_get_headless_no_dkms_metapackage,
nvidia_desktop_pre_installation_hook,
get_linux_modules_metapackage,
This prevents ubuntu-drivers from crashing when dealing with
the -open NVIDIA drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
____
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
|
2023-02-23 16:44:45 |
Alberto Milone |
description |
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* debian/rules:
- Limit the tests to the selected architectures (amd64, arm64).
This prevents armhf builds from failing.
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex and unify package name parsing in the following
functions by using the new NvidiaPkgNameInfo class:
nvidia_desktop_pre_installation_hook,
_get_headless_no_dkms_metapackage,
nvidia_desktop_pre_installation_hook,
get_linux_modules_metapackage,
This prevents ubuntu-drivers from crashing when dealing with
the -open NVIDIA drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
____
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* debian/rules:
- Limit the tests to the selected architectures (amd64, arm64).
This prevents armhf builds from failing.
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex and unify package name parsing in the following
functions by using the new NvidiaPkgNameInfo class:
nvidia_desktop_pre_installation_hook,
_get_headless_no_dkms_metapackage,
nvidia_desktop_pre_installation_hook,
get_linux_modules_metapackage,
This prevents ubuntu-drivers from crashing when dealing with
the -open NVIDIA drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
=== Jammy only (left over from 1:0.9.6.2~0.22.04.1) ===
* UbuntuDrivers/detect.py:
- Make sure -open drivers have a lower priority (LP: #1988836).
____
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
|
2023-02-23 16:56:30 |
Alberto Milone |
description |
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* debian/rules:
- Limit the tests to the selected architectures (amd64, arm64).
This prevents armhf builds from failing.
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex and unify package name parsing in the following
functions by using the new NvidiaPkgNameInfo class:
nvidia_desktop_pre_installation_hook,
_get_headless_no_dkms_metapackage,
nvidia_desktop_pre_installation_hook,
get_linux_modules_metapackage,
This prevents ubuntu-drivers from crashing when dealing with
the -open NVIDIA drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
=== Jammy only (left over from 1:0.9.6.2~0.22.04.1) ===
* UbuntuDrivers/detect.py:
- Make sure -open drivers have a lower priority (LP: #1988836).
____
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
[ Impact ]
* The introduction of the -open NVIDIA drivers requires a change in the way we detect driver series and flavours. Failing to do so, causes the ubuntu-drivers tool to crash (LP: #1993019), or to prefer the -open drivers over the non-open ones (LP: #1988836).
* Furthermore, calling the ubuntu-drivers tool where the alsa-utils package is not installed (mainly on servers), ubuntu-drivers (through the sl-modem plugin) complains, unnecessarily about the missing aplay binary.
[ Test Plan ]
* Install the new ubuntu-drivers-common from -proposed on a system where the GPU is compatible with the 515 series (or higher).
* Run the ubuntu-drivers list command, and make sure that the 515 driver series (or higher) is listed.
* Try installing the driver using the following command:
sudo ubuntu-drivers install
* Check which driver series was installed (you can use the "sudo ubuntu-drivers debug" command), and make sure that the installation does not cause ubuntu-drivers to crash.
[ Where problems could occur ]
* A problem in the ubuntu-drivers tool can cause it to install a driver which
is not recommended for the detected hardware, or even cause the package
installation to fail, and prevent users from logging in through the
graphics interface.
[ Other Info ]
* To prevent failures of the test-suite on architectures such as armhf (as seen
in Lunar), we are skipping the tests for any architectures other than amd64
and arm64 (which are the only ones actually using ubuntu-drivers).
This was already the case with riscv, and we now have an easier way
to do so in the debian/rules file.
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* New upstream release:
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex in nvidia_desktop_pre_installation_hook. This prevents
ubuntu-drivers from crashing when dealing with the -open NVIDIA
drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
=== Jammy only (left over from 1:0.9.6.2~0.22.04.1) ===
* UbuntuDrivers/detect.py:
- Make sure -open drivers have a lower priority (LP: #1988836).
== Changelogs ==
=== Kinetic and Jammy ===
[ Alberto Milone ]
* debian/rules:
- Limit the tests to the selected architectures (amd64, arm64).
This prevents armhf builds from failing.
* UbuntuDrivers/detect.py:
- Make sure all -open drivers have a lower priority, regardless
of whether the --server parameter is passed in or not.
- Update regex and unify package name parsing in the following
functions by using the new NvidiaPkgNameInfo class:
nvidia_desktop_pre_installation_hook,
_get_headless_no_dkms_metapackage,
nvidia_desktop_pre_installation_hook,
get_linux_modules_metapackage,
This prevents ubuntu-drivers from crashing when dealing with
the -open NVIDIA drivers (LP: #1993019).
* tests/test_ubuntu_drivers.py:
- Add tests so we make sure to keep preferring non-open NVIDIA
modules over the -open ones, at least until the open modules catch up
feature wise and performance wise.
[ gongzhengyang ]
* UbuntuDrivers/detect.py:
- Fix local variable 'version' being referenced before assignment
when catching ValueError (LP: #1993019).
[ Jeff Lane ]
* detect-plugins/sl-modem.py:
- Add some error trapping when aplay is not installed (on servers).
=== Jammy only (left over from 1:0.9.6.2~0.22.04.1) ===
* UbuntuDrivers/detect.py:
- Make sure -open drivers have a lower priority (LP: #1988836).
____
Hello, we received a drive-by complaint about the ubuntu-drivers autoinstall tool:
< Fhazal> hye i have problem with ubuntu 22.04 nvidia auto install command
< Fhazal> this error appear when i try to auto install recommended driver
< Fhazal> https://pastebin.com/ydZVFT24
The contents of the pastebin:
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 513, in <module>
greet()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
command_install(config)
File "/usr/bin/ubuntu-drivers", line 187, in command_install
UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment
Skimming the version on my system it sure feels plausible:
def nvidia_desktop_pre_installation_hook(to_install):
'''Applies changes that need to happen before installing the NVIDIA drivers'''
with_nvidia_kms = False
# Enable KMS if nvidia >= 470
for package_name in to_install:
if package_name.startswith('nvidia-driver-'):
try:
version = int(package_name.split('-')[-1])
except ValueError:
pass
finally:
with_nvidia_kms = version >= 470
if with_nvidia_kms:
set_nvidia_kms(1)
If there was an exception splitting, indexing, or converting to an int, that 'version' variable may not have a value.
Thanks |
|
2023-02-23 17:02:59 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Bionic): status |
In Progress |
Triaged |
|
2023-02-23 17:03:01 |
Alberto Milone |
ubuntu-drivers-common (Ubuntu Focal): status |
In Progress |
Triaged |
|
2023-02-23 17:03:38 |
Alberto Milone |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-03-02 11:22:10 |
Timo Aaltonen |
ubuntu-drivers-common (Ubuntu Kinetic): status |
In Progress |
Fix Committed |
|
2023-03-02 11:22:12 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2023-03-02 11:22:17 |
Timo Aaltonen |
tags |
rls-jj-incoming |
rls-jj-incoming verification-needed verification-needed-kinetic |
|
2023-03-02 11:36:03 |
Timo Aaltonen |
ubuntu-drivers-common (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2023-03-02 11:36:10 |
Timo Aaltonen |
tags |
rls-jj-incoming verification-needed verification-needed-kinetic |
rls-jj-incoming verification-needed verification-needed-jammy verification-needed-kinetic |
|
2023-03-13 14:37:58 |
Alberto Milone |
attachment added |
|
kinetic https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1993019/+attachment/5654171/+files/kinetic |
|
2023-03-13 14:38:15 |
Alberto Milone |
tags |
rls-jj-incoming verification-needed verification-needed-jammy verification-needed-kinetic |
rls-jj-incoming verification-done-kinetic verification-needed verification-needed-jammy |
|
2023-03-13 16:17:18 |
Alberto Milone |
attachment added |
|
jammy https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1993019/+attachment/5654197/+files/jammy |
|
2023-03-13 16:17:50 |
Alberto Milone |
tags |
rls-jj-incoming verification-done-kinetic verification-needed verification-needed-jammy |
rls-jj-incoming verification-done verification-done-jammy verification-done-kinetic |
|
2023-03-21 21:52:21 |
Launchpad Janitor |
ubuntu-drivers-common (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|
2023-03-21 21:52:28 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-06-12 12:04:53 |
Launchpad Janitor |
ubuntu-drivers-common (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|