6

After a fresh installation of Ubuntu 22.04 Desktop, Firefox (99) does not load after clicking on the icon on the left menu bar. Cursor changes to the rotating circle then disappears after a few seconds. I have performed four installations on the same hardware with the same results.

Motherboard: Gigabyte GA-970A-UD3 CPU: AMD Phenom II 6 Core 1055T RAM: 16GB Windowing System: Wayland

3
  • 1
    What is the GPU?
    – Pilot6
    May 5, 2022 at 16:48
  • Nvidia drivers won't work with Wayland. You must use X11/Xorg.
    – heynnema
    May 5, 2022 at 17:26
  • If you launch "firefox" in the terminal, do you see any error messages? Edit your question with that output.
    – heynnema
    May 5, 2022 at 17:27

2 Answers 2

10

Method to switch from Wayland to X (to make Firefox work)

In one computer I switched from the default Wayland to Xorg in order to make Firefox work. I think it was in a computer with nvidia graphics.

Edit the configuration file,

sudo nano /etc/gdm3/custom.conf

to uncomment [remove # from] the line containing

WaylandEnable=false

save the file (ctrl + x and after that y ('yes') or another key for non-English and finally Enter) and reboot.

2
  • 1
    I have a computer that has the same problem with Firefox and Chrome using 22.04 and Wayland. It does not have NVIDIA graphics, but Intel 945GM. Using X11, the browsers work as they should. (The method of sudodus is the way I used to switch.) May 18, 2022 at 14:36
  • 1
    While installing Ubuntu 22.04 on a donated computer, ran into the same problem. It did not have NVIDIA graphics either. This answer also solved the problem.
    – Rex
    Jul 15, 2023 at 13:56
3

Trying to run Ubuntu 22.04 on a computer that has an Nvidia graphics card and is using the built-in open source Nouveau graphics driver can cause Firefox to be unable to open, however you can still browse the web by installing Chromium web browser with sudo snap install chromium.

The AMD Phenom II CPU does not have integrated graphics, so it needs a separate graphics card which in turn requires a graphics driver if your graphics card is an NVIDIA model. If so, open the terminal and run the following commands to automatically install the proprietary Nvidia graphics driver packages which are suitable for your graphics card. These commands will also automatically switch your display server protocol from the default Wayland to X11/Xorg.

sudo apt update
sudo ubuntu-drivers install
sudo reboot

The install option of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies.

3
  • 2
    Wayland and Nvidia drivers don't play nice on 22.04. You must use X11/Xorg.
    – heynnema
    May 5, 2022 at 17:22
  • 1
    Thank you for your answer. This resolved my issue. May 6, 2022 at 20:04
  • 1
    There is this link: wiki.ubuntu.com/Wayland that specifically says that Wayland isn't currently working with Nvidia drivers. See section titled "Can Wayland be used with the closed source proprietary graphics drivers?"
    – Ken
    Jul 26, 2023 at 2:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .