NVIDIA GPU detected in UBUNTU 24.04 but nvidia-smi says no devices found

Hello,

I have a dual-boot system with Windows and Ubuntu 24.04. My NVIDIA GPU works fine on windows, but in Ubuntu I can’t get it to work properly. When I use nvidia-smi i always get “No devices were found”.

Thank you for your time.