I verified this by using ubuntu-drivers in a chroot on a system with
nvidia but "runtimepm" isn't supported on my system so I had to change
the check for it from "if packages[p].get('runtimepm'):" to "if True:".
After doing that I received the original Traceback:

...
  File "/usr/bin/ubuntu-drivers", line 161, in command_install
    pm_fd = open('/run/nvidia_runtimepm_supported', 'w')
PermissionError: [Errno 13] Permission denied: '/run/nvidia_runtimepm_supported'

Now for the verification:

Preparing to unpack .../ubuntu-drivers-common_1%3a0.8.6.4~0.20.04.1_amd64.deb 
...
Unpacking ubuntu-drivers-common (1:0.8.6.4~0.20.04.1) over 
(1:0.8.6.3~0.20.04.2) ...
Setting up ubuntu-drivers-common (1:0.8.6.4~0.20.04.1) ...
(focal-amd64)root@impulse:~# vi /usr/bin/ubuntu-drivers
(focal-amd64)root@impulse:~# sudo -i -u ubuntu
(focal-amd64)ubuntu@impulse:~$ ubuntu-drivers install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission 
denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are 
you root?


** Tags removed: verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal

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

Title:
  /usr/bin/ubuntu-drivers:PermissionError:/usr/bin/ubuntu-
  
drivers@480:__call__:main:invoke:invoke:invoke:new_func:invoke:autoinstall:command_install

Status in ubuntu-drivers-common package in Ubuntu:
  Triaged
Status in ubuntu-drivers-common source package in Focal:
  Fix Released
Status in ubuntu-drivers-common source package in Groovy:
  Triaged

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem
  regarding ubuntu-drivers-common.  This problem was most recently seen
  with package version 1:0.8.6.3~0.20.10.1, the problem page at
  https://errors.ubuntu.com/problem/a5320fbf71298787ff2595cc2b8227783b068dae
  contains more details, including versions of packages affected,
  stacktrace or traceback, and individual crash reports.

  There is also this bucket:
  https://errors.ubuntu.com/problem/fb18ad88544e0c025b2c9ec591b91c080d23401d

  If you do not have access to the Ubuntu Error Tracker and are a
  software developer, you can request it at
  http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1913651/+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

Reply via email to