Open ijash opened 4 years ago
Did you find a solution for this issue? I'm experiencing exactly the same behavior on a recently (freshly) installed Ubuntu 20.04.
For anyone who might encounter this thread, I've solved my problem by running this command:
sudo ubuntu-drivers autoinstall
After running (and installing a bunch of packages) the selected installed driver became the recommended one (run ubuntu-drivers devices
to find out what that is). Don't forget to reboot afterwards.
These two things worked for me on Ubuntu 12.10. Thank you! After running the commands and rebooting, the screen was at low resolution, so I switched to the next-newest driver (which is what Ubuntu had selected by default after being installed) and rebooted again. Smooth sailing since then.
Is this still occurring in the current version of the driver manager? (1.5.2).
Yes, it is. I'm trying to solve it right now. For me it started after installing NVidia Cuda following the instructions at https://developer.nvidia.com/cuda-downloads.
For anyone who might encounter this thread, I've solved my problem by running this command:
sudo ubuntu-drivers autoinstall
After running (and installing a bunch of packages) the selected installed driver became the recommended one (run
ubuntu-drivers devices
to find out what that is). Don't forget to reboot afterwards.
Since this issue is still open...I faced this exact issue on a fresh install of Ubuntu 22.04. Running the command from @vpalos worked for me as well! Thank you for posting the solution. I realize this is a Linux Mint issue, however the issue was present on Ubuntu, which makes me think it's something further upstream, maybe?
# ubuntu-drivers autoinstall
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
# ubuntu-drivers autoinstall 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
I am getting the same error on sudo ubuntu-drivers autoinstall
Is there a workaround for this?
@DolceParadise replace the line 853 with
version = int(package_name.split('-')[-2])
in
/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py
Solution: sudo apt purge nvidia sudo apt autoremove sudo apt install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core xserver-xorg-video-nouveau libdrm-nouveau2
then logout and in
suddenly everything is selectable!
@DolceParadise replace the line 853 with
version = int(package_name.split('-')[-2])
in/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py
Thanks, it is line 835 now.
Installing the nvidia-driver-525
explicitly using APT fixed it for me: https://askubuntu.com/a/1463002/333914
@DolceParadise replace the line 853 with
version = int(package_name.split('-')[-2])
in/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py
worked for me. I was facing the issue of black screen after boot so i change the driver to nouveau driver from the during the bootup process after that my drivers got locked to "continue using manually installed driver " in the ubuntu addition drivers
after making this changes and rebooting i was able to change my driver from addition driver setting but it is still facing the blackout screen problem
I have one more question should i be using the nvidia drivers open(porprietary,tested ) ones or just the one proprietary option thank you in advance
I hope this is the proper location to post an issue. if not, please notify me. I will move it later.
Issue I am getting this message: Then, the driver manager shows:
the problem is, i can't get back to install the nvidia drivers. other options are greyed out.
Steps to reproduce
note: this is tested not only in a computer, but other computer as well. with the same mint distribution.
Expected behaviour
Users are freely switching between drivers even if they manually install custom drivers.
Other information this linux mint is upgraded version form 19.02 via update manager.
system info:
.xsession-errors info:
I have found this conversation on the forum but I have not tried the solution when this report was posted.
Any further assistance or instruction for this (probably) bug, I'd like to give further relevant information .