I used the command line even,but i am still getting multiple errors tried removing any versions previously and start fresh,but it still says things like not able to use that rep by default or not satisfying dependcies.I have ubuntu 24.04
You want to try on a Ubuntu user support channel. GNOME has nothing to do with installing VirtualBox.