i can't update or change my nvidia drivers and they seem to be stuck on the x.org drivers
https://askubuntu.com/questions/1555377/i-cant-update-or-change-my-nvidia-drivers-and-they-seem-to-be-stuck-on-the-x-or
sorry if i don't give enough info i'm new to this stuff
the output when i do lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
the nvidia gaphics card in question TU117M [GeForce GTX 1650 Mobile / Max-Q]
i need to update the drivers cause it shows the card as "unclaimed" when i dosudo lshw -c displayand last time that happend reinstalling drivers works
*-display UNCLAIMED
description: VGA compatible controller
product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller cap_list
configuration: latency=0
resources: memory:f6000000-f6ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:f000(size=128) memory:f7000000-f707ffff
*-display
description: VGA compatible controller
product: Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:05:00.0
logical name: /dev/fb0
version: c1
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
configuration: depth=32 driver=amdgpu latency=0 resolution=1920,1080
resources: irq:24 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:c000(size=256) memory:f7500000-f757ffff
so i follow the instructions on https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/
cat /proc/driver/nvidia/version
cat: /proc/driver/nvidia/version: No such file or directory
then i did sudo ubuntu-drivers list
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
then i did sudo ubuntu-drivers install it outputs
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
All the available drivers are already installed.
so i just do sudo apt install nvidia:535 but it error somewhere and now i think it's stuck cause whenever i do sudo apt auto-remove it outputs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-535 (535.171.04-0ubuntu2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-535.171.04 DKMS files...
Deleting module nvidia-535.171.04 completely from the DKMS tree.
Loading new nvidia-535.171.04 DKMS files...
Building for 6.14.0-29-generic
Building for architecture x86_64
Building initial module for 6.14.0-29-generic
ERROR (dkms apport): kernel package linux-headers-6.14.0-29-generic is not supported
Error! Bad return status for module build on kernel: 6.14.0-29-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.171.04/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.171.04-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.171.04); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for initramfs-tools (0.142ubuntu25.5) ...
update-initramfs: Generating /boot/initrd.img-6.14.0-29-generic
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)
i check the additional drivers tab from the "software & updates" while it has a list of drivers
it's using x.org X server - nouveau display driver
i tried to switch to nvidia driver metapackage from nvidia driver 535 (proprietary,tested)
after a bit an error pop ups saying
Error while applying changes
pk-client-error-quark:Error while installing package :installed nvidia-dkms-535 package post-installation scrpit:subprocess returned error exit status 10 (313)
for some reason when i tried to get the error message again to type out it change the drivers without issue but when i reboot it's back to x.org and the error message appears again
edit: a comment says a should do sudo apt update that also a problem that might be unrelated when i enter the command it outputs
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-1385/Packages' as repository 'http://archive.ubuntu.com/ubuntu noble InRelease' doesn't support architecture '1385'
N: Skipping acquire of configured file 'restricted/binary-1385/Packages' as repository 'http://archive.ubuntu.com/ubuntu noble InRelease' doesn't support architecture '1385'
N: Skipping acquire of configured file 'universe/binary-1385/Packages' as repository 'http://archive.ubuntu.com/ubuntu noble InRelease' doesn't support architecture '1385'
N: Skipping acquire of configured file 'multiverse/binary-1385/Packages' as repository 'http://archive.ubuntu.com/ubuntu noble InRelease' doesn't support architecture '1385'
there's seems to be an error about noble inrelease
i don't think dpkg --print-foreing-architectures is correct cause it outputs
dpkg: error: unknown option --print-foreing-architectures
if it was a typo and was supposed to be dpkg --print-foreign-architectures
output is
i386
1385
doing sudo dpkg --remove-architecture 1385 and sudo apt update again seems to have worked?
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
but sudo apt upgrade still gives errors
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
libmagickcore-6.q16-7t64 libzvbi-common imagemagick
libmagickcore-6.q16-7-extra libcjson1 libavdevice60 ffmpeg libpostproc57
libavcodec60 libavcodec60 libgstreamer-plugins-bad1.0-0 libzvbi0t64
libzvbi0t64 libavutil58 libavutil58 imagemagick-6.q16 libswscale7
libswresample4 libswresample4 imagemagick-6-common 7zip libavformat60
libavfilter9 libmagickwand-6.q16-7t64
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-dkms-535 (535.171.04-0ubuntu2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-535.171.04 DKMS files...
Deleting module nvidia-535.171.04 completely from the DKMS tree.
Loading new nvidia-535.171.04 DKMS files...
Building for 6.14.0-29-generic
Building for architecture x86_64
Building initial module for 6.14.0-29-generic
ERROR (dkms apport): kernel package linux-headers-6.14.0-29-generic is not suppo
rted
Error! Bad return status for module build on kernel: 6.14.0-29-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.171.04/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (--configure):
installed nvidia-dkms-535 package post-installation script subprocess returned
error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.171.04-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.171.04); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
Processing triggers for initramfs-tools (0.142ubuntu25
.5) ...
update-initramfs: Generating /boot/initrd.img-6.14.0-29-generic
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1)
tried sudo apt auto-remove again also tried drivers list and drivers install but they all gave the same thing as before
the additional driver thing seems to have change to nvidia driver 535? but lshw still shows the driver as unclamied and nvidia smi still errors and inxi -Gx still shows the driver:N/A