ubuntu-drivers should not run unless user is root
Bug #1920225 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
one cannot install drivers unless one is root (or has root priv escalation via sudo).
For that reason, ubuntu-drivers should not run without a priv check.
ubuntu@
This is gpgpu mode
E: Could not open lock file /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
This shouldn't trigger the apt privilege error, ubuntu-drivers itself should check to see if it's running as root and then prompt the user.
To post a comment you must log in.
Even uglier traceback when trying to directly install the nvidia 470 server driver without using sudo:
ubuntu@polari:~$ ubuntu-drivers --gpgpu install nvidia:470-server ubuntu- drivers" , line 487, in <module> python3/ dist-packages/ click/core. py", line 722, in __call__ python3/ dist-packages/ click/core. py", line 697, in main python3/ dist-packages/ click/core. py", line 1066, in invoke result( sub_ctx. command. invoke( sub_ctx) ) python3/ dist-packages/ click/core. py", line 895, in invoke self.callback, **ctx.params) python3/ dist-packages/ click/core. py", line 535, in invoke python3/ dist-packages/ click/decorator s.py", line 64, in new_func
This is gpgpu mode
Traceback (most recent call last):
File "/usr/bin/
greet()
File "/usr/lib/
return self.main(*args, **kwargs)
File "/usr/lib/
rv = self.invoke(ctx)
File "/usr/lib/
return _process_
File "/usr/lib/
return ctx.invoke(
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
return ctx.invoke(f, obj, *args[1:], **kwargs) ...