Hi Arman Ali,
Based on your query,
When you trying to install nvidia drivers on the ubuntu there is supporting OS mentioned below
Installing NVIDIA drivers via the Azure extension**: The extension only supports Linux Ubuntu 20.04 LTS, meaning users can install drivers automatically through Azure without manual steps.
Please refer below SS & documentation once
Operating system
- Installing NVIDIA drivers manually: If users are running Ubuntu 22.04 LTS or later, they must install the drivers manually, as the Azure extension does not support automatic installation for these versions.
Please refer the SS & documentation
Install NVIDIA GPU drivers on N-series VMs running Linux
To install manually, they should first update the system:
sudo apt update && sudo apt upgrade -y
Then, they need to install the required dependencies:
sudo apt install -y ubuntu-drivers-common
Next, they should install the recommended driver automatically:
sudo ubuntu-drivers install
Or if they prefer a specific version, they can use:
sudo apt install nvidia-driver-XXX
After installation, the system must be rebooted:
sudo reboot
Then they can verify the installation:
nvidia-smi
If you have any further query, please let me know still you're facing the issue tag me comment will help you as needed.!
If it is helpful, please consider an Upvote and Let us know