This my verification for eoan.
This is the old package and the failure:
:~$ apt-cache policy ubuntu-drivers-common
ubuntu-drivers-common:
Installed: 1:0.7.6
Candidate: 1:0.7.6
Version table:
*** 1:0.7.6 500
500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
100 /var/lib/dpkg/status
:~$ PATH="" /usr/bin/ubuntu-drivers devices
ERROR:root:could not open aplay -l
Traceback (most recent call last):
File "/usr/share/ubuntu-drivers-common/detect/sl-modem.py", line 38, in detect
universal_newlines=True)
File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'aplay': 'aplay'
Traceback (most recent call last):
File "/usr/bin/ubuntu-drivers", line 268, in <module>
sys.exit(command(args))
File "/usr/bin/ubuntu-drivers", line 85, in command_devices
sys_path=sys_path, freeonly=args.free_only)
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 543, in
system_device_drivers
if not _is_manual_install(apt_cache[pkg]):
File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 226, in
_is_manual_install
stderr=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'modinfo': 'modinfo'
And this is what happens after installing the package in eoan-proposed:
:~$ PATH="" /usr/bin/ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0 ==
modalias : pci:v00008086d000024FDsv00008086sd00000010bc02sc80i00
vendor : Intel Corporation
model : Wireless 8265 / 8275 (Dual Band Wireless-AC 8265)
driver : backport-iwlwifi-dkms - distro free
:~$ apt-cache policy ubuntu-drivers-common
ubuntu-drivers-common:
Installed: 1:0.7.6.0.1
Candidate: 1:0.7.6.0.1
Version table:
*** 1:0.7.6.0.1 400
400 http://archive.ubuntu.com/ubuntu eoan-proposed/main amd64 Packages
100 /var/lib/dpkg/status
1:0.7.6 500
500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
** Tags removed: verification-needed verification-needed-eoan
** Tags added: verification-done verification-done-eoan
--
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/1854472
Title:
ubuntu-drivers-common fails when no PATH environment variable is
passed
Status in ubuntu-drivers-common package in Ubuntu:
Fix Released
Status in ubuntu-drivers-common source package in Bionic:
Fix Committed
Status in ubuntu-drivers-common source package in Eoan:
Fix Committed
Bug description:
SRU Request:
[Impact]
* ubuntu-drivers-common fails when no PATH environment variable is
passed:
https://errors.ubuntu.com/problem/52d04f39f8cbdb77d65ec57f19a5801284c1e2b0
* While the reasons why the PATH variable is empty are unknown, the
ubuntu-drivers tools should be more robust and not fail, and we can expect a
minimal PATH (such as /sbin:/usr/sbin:/bin:/usr/bin) to be available on the
system.
[Test Case]
* Install ubuntu-drivers-common from the -proposed repository.
* Call the ubuntu drivers tool passing the "devices" parameter:
ubuntu-drivers devices
* Call the ubuntu drivers tool passing the "devices" parameter and an empty
PATH variable:
PATH="" /usr/bin/ubuntu-drivers devices
* Neither case should fail any more.
[Regression Potential]
* Low. Nothing really changes in the functioning if the PATH variable
is not empty.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1854472/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp