Been trying to update my drivers to nvidia 570, but no matter what I try, it never actually installs. I’ve tried through the pop shop, through sudo ubuntu-drivers autoinstall
in the terminal, through the system76 driver install command in the terminal, but nothing; it looks like it starts, but all that results in no DP output from my PC, even after waiting 15+ minutes. Force rebooting after this happens results in the PC booting with no GUI, only a terminal. I’m at my wit’s end here; nothing I do seems to work, and the only driver that actually functions is nvidia 470. Can anyone help me figure out what’s going on?
edit: for reference, when I run sudo apt install nvidia-570
in the terminal, the process runs, then I get a wall of libkmod: ERROR ../libkmod/libkmod-config.c:772 conf_files_filter_out: Directories inside directories are not supported: /etc/modprobe.d/sound.conf
until the process finally resumes, ending with the statement “errors were encountered while processing: nvidia-dkms-570, nvidia-driver-570, system76-driver-nvidia” and the error E: sub-process /usr/bin/dpkg returned with error code (1)
.
From there, I try running `sudo dpkg --configure -a’, but that runs into the same issue: wall of the libkmod error, then errors while processing those three drivers. Then I try ‘sudo apt install -f’ which results in the exact same errors.
I have a GeForce GTX 1070 graphics card if that helps. sudo ububtu-drivers devices
returns nvidia 570 as the recommended one.
I have no idea what that even is, much less how it got there. is the only thing I need to do is to delete that file?
Just use
mv
and move to something likesound.conf.bak
, then try running the driver install again. If everything works as expected after reboot, leave it there. If something goes wrong with your sound, put it back to the original name.well that cleared up the wall of errors, but the drivers still aren’t installing.
Since the outputs are a lot cleaner, I can actually read some of them. it seems like nvidia-570 isn’t installing because of a dependency problem; that being it needs nvidia-dkms-570, which is present but unconfigured. at least that’s how I’m interpreting it.
edit: also, I don’t know how to fix that.
Uninstall all the Nvidia packages tagged with 570 (force if needed):
dpkg -l | grep nvidia | grep 570
Then reinstall the main meta package for the 570 driver. That should fix the issue and build the kmod properly.
Is there a way to purge the entire grep output without going through one by one? also, is the main meta package that dkms file?
edit: I went through and deleted everything in that list one by one, but for whatever reason, some things won’t delete: I tried using
rm -rf' and
shred` on those files, but they still show up when I grep them (and the shred command says they’re not there when I try to delete them, even tho they show up in grep)edit 2: OK I had tried running
sudo ubuntu-drivers autoinstall' again, saw the same issue that dkms-570 wasn't configured correctly. went through deleting everything in the -l output one by one. this time the -l thing didn't return anything, so then I tried running
sudo ubuntu-drivers autoinstall’ again. which returned the same issue, with dkms-570 not being configuredOkay, then you are failing at the basic levels of compiling a kernel module somewhere. If it’s not giving you an error that’s easy to see, you can debug by checking the apt install logs, or if you just want to work around this, maybe try running the Nvidia installer. It builds from scratch, and will give you better output if you’re unfamtwith debugging apt compile issues.
Give that a go, and post any errors output here.
I don’t know how to check the apt install logs; from the terminal, I can’t scroll up for whatever reason (still on the terminal/console with no gui). What would be the nvidia installer? looking that up only gives me results on ubuntu-drivers install command.
https://www.nvidia.com/en-us/drivers/unix/
Detailed install instructions included.
That worked perfectly. Thank you so much!