There’s also libOpenGL.so etc. in /usr/local you need to remove. likely some self-compiled mesa, you should know what you installed and where to run make uninstall.
uninstalling some of these with apt will pretty much remove everything on my system , so i’m clearly doing something wrong or simply i’m not understanding the situatuion
is there a way to edit some configuration to successfully point to nvidia opengl rather than uninstalling?
Let’s say that i find the right package to uninstall though, what should i do after uninstalling? just reboot? reinstall nvidia drivers? run some specific commands?
So it’s not your system?
/usr/local is usually the default location where self-compiled stuff gets installed, i.e. download mesa sources, run configure, make, make install.
No packages get installed there, the location is usually empty but is searched first when libraries are loaded, to override system libs. Configured in /etc/ld.so.conf
Please check what’s in those directories
/usr/local/bin
/usr/local/sbin
/usr/local/lib
/usr/local/lib/x86_64-linux-gnu
and empty them in case you don’t find things you know and want to keep.