Please do not install packages this way.
It will lead to partial-upgrade state … which is bad.
This shows PRIME working well.
You can use the nvidia card when you call it with prime-run.
Please advise if you were aware of this and truly wish to switch to nvidia-only.
I suppose I can say already - in many cases that is not preferred.
Intel is more compatible with many things and your iGPU will consume less resources, less power, and it is generally a performance betterment to have, for example, your desktop run on the intel and your game run on the nvidia.
But if you truly desire to use nvidia only … your first look in that case should be to check BIOS. It isnt very common … but if you are lucky you will have an option there to disable the iGPU entirely … after which you can return to your desktop and select the nvidia drivers.
If that is not available some other options exist such as ‘reverse-prime’.