Guide
Install the NVIDIA driver and CUDA on Ubuntu 24.04
Last updated: 1 December 2026
A new GPU server needs the NVIDIA driver before anything can use the card. On Ubuntu this takes a few commands.
Instant VPS from $7.99 a month
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
See Instant VPS plansHow ordering worksInstall the driver
Let Ubuntu pick the recommended driver for your card, then reboot:
sudo apt update
sudo apt install -y ubuntu-drivers-common
ubuntu-drivers devices
sudo ubuntu-drivers install
sudo reboot
Check it works
After the reboot, nvidia-smi should list your GPU. The CUDA toolkit from the Ubuntu repository gives you the compiler:
nvidia-smi
sudo apt install -y nvidia-cuda-toolkit
nvcc --version
Newer CUDA versions
Ubuntu's toolkit package is convenient but not always the newest. If your software needs a specific CUDA version, follow NVIDIA's own repository instructions for your system.
If something goes wrong
- No GPU listed: check the output of
ubuntu-drivers devices and that the server really has the card - Black screen is irrelevant on a server; use the provider console if SSH does not return after the reboot
- Keep a note of the driver version; frameworks and CUDA must match it
Need a GPU server?
See our GPU servers: NVIDIA T4 to H200, built to order, no ID documents, pay with Monero or Bitcoin. Use them within our acceptable use policy.
Questions and answers
Which driver does it choose?
The one Ubuntu marks as recommended for your GPU.
Do I need CUDA for PyTorch?
No. The PyTorch packages bring their own CUDA libraries; you only need the driver.
Can I update the driver later?
Yes, with apt, followed by a reboot.
Does it work on Debian?
The steps differ; this guide is for Ubuntu 24.04.
Ready to try it? Instant VPS from $7.99 a month
- Pick a plan: Instant 1-2, $7.99 a month or all Instant VPS plans.
- Sign up with an email address, a password and any nickname: no ID, no phone number.
- Pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX, or by card through MoonPay. Monero is the most private way to pay; USDT or USDC on Solana confirm in seconds, and we add no transfer fee on them.
- Orders are processed automatically and delivered in about 10 minutes.
- New VPS orders have a 24-hour guarantee (see the terms for what is covered).
- Before you pay you can ping our test IPs and read the live status page.
- Support is available 24/7 via email and our client ticket portal.
See Instant VPS plansHow ordering works