I have recently installed Ubuntu on my old PC. After first boot, Firefox worked fine but later the app opens but the window doesn’t appear. The close and the enlarge function works. I tried installing Falkon and Opera. Falkon doesn't load while Opera turns into a black window and the close/enlarge button is working. At present a lightweight Netscape browser is functioning. My PC does not have a graphics card installed. I have installed Ubuntu to start learning Python.
This is the info that I get from terminal when I try to launch Firefox.
arun@arun-HCL-Desktop:~$ firefox
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gimp/2.0/help /usr/share/gimp/2.0/help none bind,ro 0 0): cannot open directory "/var/lib": permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied
Gtk-Message: 07:19:00.037: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[GFX1-]: glxtest: failed to read data from glxtest, we may fallback to software rendering
[GFX1-]:
No GPUs detected via PCI
Error image when I try to open the app by launching and by pressing Alt+F2:

The screen starts to flicker when new apps are opened after opening Firefox:

I tried reinstalling the Snap Store, reinstalling Ubuntu and solutions in this thread.