Traceback when trying to install drivers as normal user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-drivers-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Forgot to use sudo and discovered an ugly traceback.
ubuntu@
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, **kwargs)
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/bin/
command_
File "/usr/bin/
pm_fd = open('/
PermissionError: [Errno 13] Permission denied: '/run/nvidia_
This is because I forgot to use sudo to do the install
ubuntu-drivers can do somethings as a non-privileged driver but other things (install) requires root escalation.
ubuntu-drivers should either always require root via sudo, or "ubuntu-drivers install" should do a user check and exit with a simple helpful message like "You must use sudo when installing drivers".
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.8.0-60-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu50.7
Architecture: amd64
CasperMD5CheckR
Date: Mon Jun 28 20:06:09 2021
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)