NVIDIA GeForce GTX 770 driver

Hello,

Ill start with my system specs

Gtx 770 4G
2 pny ssds
intel 4790
16gb ddr3 ram

So I’m duel booting
windows 10 on my 1tb ssd and ubuntu on my extra 500gb ssd. I’m using the latest version of ubuntu desktop. LTS 24.04.3.

My issue is I can’t for the life of me install the drivers for my 770. It takes nvidia 470 driver but it fails every time no matter what I do. Windows 10 ended support and I’m not going to 11. I read something about downgrading the kernal and I don’t know what to do. Maybe I should use a different Linux OS than ubuntu for my 770?

Hello majikninja - Welcome to Ubuntu Discourse :smiley:
It is simple to install the proprietary driver; but first some background info - so we know we are on a firm foundatuon.
Open a terminal from your desktop with the key combo ctl+alt+t
here run terminal commands:

dpkg -l | grep -i nvidia
sudo ubuntu-drivers devices
sudo ubuntu-drivers list

and paste these outputs back here - between code tags to maintain the formatting - highlight the long text and then use Ctrl+E to wrap with code tags.
From these we know the Nvidia components, the hardware and what the kernel thinks for available drivers.
Then we can direct to system to install the driver it thinks best suited.

-ain’t nothing but a thing-

majikninja@majikninja-MS-7850:~$ dpkg -l | grep -i nvidia
majikninja@majikninja-MS-7850:~$ sudo ubuntu-drivers devices
[sudo] password for majikninja: 
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001184sv00003842sd00003776bc03sc00i00
vendor   : NVIDIA Corporation
model    : GK104 [GeForce GTX 770]
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-470-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

majikninja@majikninja-MS-7850:~$ sudo ubuntu-drivers list
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
majikninja@majikninja-MS-7850:~$

Yup confirmed that the 470 version driver is the recommended driver; also per:
https://www.nvidia.com/en-us/drivers/results/

as a precaution - disable secure boot in Bios - as the proprietary driver is 3rd party software.
Next do in terminal:

sudo ubuntu-drivers install

Reboot to see the effect.

-as easy as that-

majikninja@majikninja-MS-7850:~$ sudo ubuntu-drivers install
[sudo] password for majikninja:
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
All the available drivers are already installed.
majikninja@majikninja-MS-7850:~$

Driver fails to work when in go to software updater and then go the additional drivers. I select 470(proprietary,tested) Fails.

only Nouveau (open source) driver works.

There was a Bug Report submitted (#2061830). You may want to read that before proceeding.


The response posted here gives the intervention required to address your specific error message.

That tells you where the “malformed” file is located, namely

  • /usr/lib/python3/dist-packages/UbuntuDrivers/detect.py

and where you need to replace (in two locations) the reference to

  • udevadm hwdb

with

  • systemd-hwdb

That change can be done using any text editor (i.e. GVim, Emacs, etc.) or using nano as outlined by the poster.

I’m new to linux os. I don’t know what this means. Looks like I just need to stay on windows 10.

majikninja

Not a viable option - running an UNsecure operating system in today’s environment. Unk huh.

We can get through this. But be aware I have not run Nvidia graphics in some time, was not aware of the depreciation. In any evnet can not hurt a thing to see what results with running:

sudo apt update
sudo apt upgrade
sudo ubuntu-drivers install

then we can address editing that file to be compliant. As you are comfortable pasteing content to this thread - hey, editing a file will be a walk in the park.

-help is what we do-

1 Like

Edited the title to more accurately reflect the help being sought.

likely related:

2 Likes