Hello everyone.
Today I replaced my old Gigabyte GeForce 2070 graphics card with my new MSI GeForce 5070 Ti, and the result is that Grub loads perfectly, but then when I select Kubuntu, it doesn’t load.
At first, it looks like this for a while:
Finally the screen shows this, whose numbers keep growing until I don’t know how much, because I have been there for several minutes and they kept coming out without ever loading the desktop.
The drivers I had installed are the ones included in the repositories and are proprietary. I can’t look at them anymore, but I seem to remember they were 550.xx.
In short, I’m locked out of the system, and I’d like to know if you can help me recover my desktop somehow.
Thanks in advance, and best regards…
I just did it. I entered recovery mode from Grub and there I issued the command:
sudo apt purge nvidia-*
And then I installed the NVIDIA-Linux-x86_64-575.51.02.run driver downloaded from the NVIDIA website.
Unfortunately, the issue hasn’t been resolved. Now, after what you see in the first screenshot of my previous post, it goes to a black screen and stays that way.
Regards…
You should never use .run files … there is the ubuntu-drivers tool for installing nvidia drivers on cmdline and it will do a bunch of tests and checks to determine which is the correct driver for your card and kernel combination to then install the correctly signed driver for that kernel … not sure ubuntu-drivers still works after you installed a .run file though and no idea how you get rid of the .run installed driver either…
Anticipating that there might be problems with the graphics card swap, I created an image of the Linux partition with Acronis before making the change. So, in light of your response, I’ve restored it. So now Linux is back to how it was before installing the .run file; it’s as if I had never installed it.
So, if you could please tell me exactly how I should proceed to use the aforementioned ‘ubuntu-drivers’ tool from recovery mode, I would be very grateful. That is, perhaps I should enter the command ‘apt-get install ubuntu-drivers’? Or if that’s not the command, please tell me what command or how I should proceed.
Thank you and best regards…
The ubuntu-drivers tool is part of the default install, so it should already be there and you should be able to run it with sudo ubuntu-drivers … By default it should list all proprietary hardware and its possible drivers so that you can install the correct driver using ubuntu-drivers install ...
I’d recommend to make sure you are properly connected to the network when doing all this (IIRC the recovery mode allows picking with or without network) so the proper driver can be downloaded if necessary
I’ve tried entering every single one of the arguments it gives, but to no avail. Even the --help command only displays the exact thing you can see in the screenshot.
Regards…
try without sudo (you are root already so this is not needed) and run ubuntu-drivers list (that is supposed to be the default if you do not use any command though, but seems it expects to be handed over a command here in your case)
Note that it can take a while until it returns something (this can be several minutes), it queries all your hardware and compares it to a database to check if there are any known proprietary drivers for it
Looks like the OP installed the “SERVER” version of the driver (.run from nvida) and is invoking the cuda cores to augment the CPU with the GPU in processing versus acting as a graphics card.
Commonly done with headless servers to utilize the cuda cores as processors
remove (purge) the installed video driver and then install the correct one.
most likely the op will need to boot from live usb to accomplish this
from the terminal
One " should " be able to reboot into a GUI without the live usb
at this point install the correct Ubuntu drivers can be installed as @ogra is describing correctly in his post
(hopefully this isnt a dual boot system)
I don’t know how to enter the ^ character that is part of the command sudo apt-get remove --purge '^nvidia-.’
Remember, I’m in console mode, so I can’t copy and paste. I’m just reading a screenshot of another computer’s screen. Sorry to be so clumsy, but I can’t find the key or key combination that inserts that character.
Anyway I replaced that command with sudo apt-get remove --purge nvidia- and it seems to be the same, right?
I then followed all your instructions, and everything seems to have gone smoothly. But in the end, nothing changed. When I type the command sudo ubuntu-drivers, the same thing appears as before:
[quote]most likely the op will need to boot from live usb to accomplish this
from the terminal[/quote]
I’ve done all of this from recovery mode, and since it doesn’t seem to have had the desired effect, how do I do it from the Kubuntu LiveUSB as you suggested? Once in the Kubuntu LiveUSB interface, what exactly should I do to enter these commands into the installed Kubuntu?
Regards…
Why not simply first use the drivers from the archive ?
(I’d only resort to the PPA if it is proven the archive ones do not work)
Nope, while you can technically omit the caret character (it is the regex equivalent of “starts with”) you will definitely need the dot and asterisk .* at the end to tell apt “all packages, regardless what comes after nvidia-” … also do not forget the single quotes …
to find where a character is on your keyboard, simploy try all keys with modifiers like alt or shift … if you don’t hit enter the command line will not do anything, just delete the mess of chars you make (and even if you accidentally hit enter it will most likely just tell you the comamnd is not found)
@sgt-mike I don’t have a very good command of English, so I think I misunderstood the last paragraph of your previous message. I thought you were telling me to use a Kubuntu LiveUSB to enter those commands instead of using Grub’s recovery mode. But now I think I understand that you’re simply asking me to reboot, and that the graphical interface should be activated, right? Well, I rebooted, and now, after the logo screen, here’s what I see:
@ogra I was finally able to enter the command sudo apt-get remove --purge ‘^nvidia-.*’ and repeat all the other commands indicated by @sgt-mike.
Unfortunately, when it came to entering the command sudo ubuntu-drivers, the same thing happened as before.
However, something has changed, because now when I try to start Kubuntu after the logo window, the screen no longer remains completely black, but instead displays this:
Well there is actually no reason outside it is what I have done in the past.
and your advisement for the OP is just as valid and maybe better.
Regardless the nvida driver that was loaded has to be purged. As well as the links.
Which honestly I’ve seen where it takes multiple times to do
side note to see which driver is loaded currently
lshw -c video
@supersayano
looks like the video drivers are now gone confirm with lshw -c video command.
Which at this point is where @ogra directions to get the drivers provided should work.
typing
sudo ubuntu-drivers
or if already superuser aka root and typing
ubuntu-drivers
will simply do nothing and error @ogra is correct in the command and you must have the administrative privileges’ (hence the sudo part of the command unless you are root)