UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Cannot open firefox on newly install Ubuntu 22.04 for Linux

Open ypzpy opened this issue 2 years ago • 12 comments

Hi, I just downloaded Ubuntu 22.04 on Macbook and would like to dowload firefox. I've tried different installation commands such as "sudo apt install firefox" and "sudo snap install firefox", but I still cannot open firefox and the error message is shown in the picture 截屏2023-02-04 17 08 50

ypzpy avatar Feb 04 '23 17:02 ypzpy

Hardware accelerated graphics seem the problem. It's not the solution but a temporary workaround could be to choose a non gl display setting in UTM vm setting. virtio-ramfb appears to work.

hopefully the devs. can pick this up and apply the fix soon.

Cheers!

slyt0n3 avatar Feb 06 '23 10:02 slyt0n3

Thank you so much for the workaround. It seems to affect Cinnamon desktop env rendering as well. But if I switch desktops and devices back to the non-accel drivers, firefox and all windows work again!

huebnerr avatar Feb 08 '23 19:02 huebnerr

I have install Ubuntu on ARM and have deinstall the firefox snap and replace snap-Firefox to a PPA sudo snap remove firefox and install the sudo add-apt-repository ppa:mozillateam/ppa && sudo apt update and sudo apt install firefox-esr firefox-esr-locale-de

thokich avatar Feb 09 '23 22:02 thokich

Had the same problem with both Firefox and Chromium on Ubuntu 22.04 and 22.10 ARM on an Apple Silicon M1 Macbook Pro. Switching to the virtio-gpu-pci device that doesn't have GPU acceleration fixed the issue for now.

DrewFitz avatar Feb 13 '23 18:02 DrewFitz

+1

kekko7072 avatar Mar 01 '23 14:03 kekko7072

Hardware accelerated graphics seem the problem. It's not the solution but a temporary workaround could be to choose a non gl display setting in UTM vm setting. virtio-ramfb appears to work.

hopefully the devs. can pick this up and apply the fix soon.

Cheers!

Fixed following this steps and changing the display settings to virtio-gpu-pci

kekko7072 avatar Mar 01 '23 14:03 kekko7072

It's great that there are these workarounds, but is GPU Acceleration being broken getting fixed?

I'm not trying to be demanding or whatever but just wondering. Because it worked fine on UTM 3.x but it's broken on 4.x. I'd just like for the GPU acceleration to work again.

Cheers

vmachiel avatar Mar 26 '23 07:03 vmachiel

I do have the same problem with firefox or any other software that tries to use VA:

vainfo 
libva info: VA-API version 1.14.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit
walter@ubuntu2204:~$ lsb_release -a 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy

Graphic Card: virtio-ramfb-gl

waltervargas avatar Apr 01 '23 00:04 waltervargas

When I change to a different GPU I get no display output at all. To be honest... it makes UTM unusable for now.

felixqueisler avatar Apr 14 '24 21:04 felixqueisler

When I change to a different GPU I get no display output at all. To be honest... it makes UTM unusable for now.

I have the same issue.

thesuhas avatar May 17 '24 18:05 thesuhas

I solve the problem, with these commands: sudo apt update; sudo apt install snapd apparmor; sudo systemctl enable snapd.apparmor; sudo systemctl start snapd.apparmor; sudo systemctl enable snapd; sudo systemctl start snapd;

adavidarevalo avatar May 19 '24 22:05 adavidarevalo

That worked! Thank you!

thesuhas avatar May 20 '24 16:05 thesuhas