Problem Description:
Firefox isn’t working after release-upgrade.
amonra@charon:~$ which firefox
/usr/bin/firefox
amonra@charon:~$ firefox&
[1] 98588
amonra@charon:~$ xdg-settings: $BROWSER is set and can't be changed with xdg-settings
/user.slice/user-1000.slice/session-37.scope is not a snap cgroup
Tried apt remove firefox and apt install firefox, still not working.
Your output strongly suggests that you are using Firefox from a snap package, not a deb package. Newer releases of Ubuntu, including 22.04, use the snap.
See if you have the Firefox snap installed: Try running /snap/bin/firefox or snap list | grep firefox
That stackexchange thread didn’t seem to offer a solution - building a new kernel shouldn’t be necessary. This should just work (it does on a fresh install of 22.04, but I REALLY don’t want to go there with > 5 years of configuration invested).
I removed the firefox snap and installed the .deb from Mozilla. Problem bypassed (not solved as no-one provided a solution for fixing snap).
Canonical may think snap is the best thing since sliced bread, but I try to avoid sliced bread.
Firefox on the 22.04 virtual machine I installed from scratch is slow as molasses and since reading around the internet on this issue, I think the firefox snap there is going to get removed given that Firefox on the 20.04 VM is not at all slow.
Did you check your environment variables?
That’s much, much easier.
Obviously Ubuntu would not ship a kernel incompatible with snapd.
Surprised you were distracted by that particular answer.
Not really.
Snap packages have many uses. Developers (and many users) find Snaps to have many benefits.
That you use only one today does not suggest you will always use ONLY one.
Glad you found a solution nevertheless that works for you.
I don’t set that myself, so something in the system is possibly setting it incorrectly, and I shouldn’t be trying to work round that with an entry in .bashrc
That isn’t the case for later releases, eg. looking at 24.04 (https://cdimage.ubuntu.com/lubuntu/releases/24.04.1/release/lubuntu-24.04.1-desktop-amd64.manifest) you’ll note more is provided as snap. Whether or not you need firmware-updater of course is up to you (and your hardware). On the PC I’m using currently I get a number of firmware updates each year as a consequence of that snap package, however on another older (2008 Dell) I use late in the day I get no benefit (Dell/Intel/etc abandoned that machine hardware long ago!).
@oldfred already warned that Lubuntu 22.04 LTS is approaching the EOL date for the Lubuntu team… Whilst your base Ubuntu system will get security/updates for five years, parts of your system won’t get team support, so are you thinking about the future? or only the next few months? (April 2025)
FYI: Lubuntu (and two other flavors) offer a snap free install anyway; so we do provide for installs without those packages, but we don’t prevent those packages from being installed (no pinning is done), and personally I’d not recommend snapd free anyway (snap makes a machine more useful & does solve issues!)… but snap free is still provided if folks want it.
but snap free is still provided if folks want it.
But I assume not as part of a release-upgrade?
Meantime I still have a system where the value of DBUS_SESSION_BUS_ADDRESS is being set “wrong”, so the snap version of firefox isn’t playing. I don’t consider that setting this manually in .bashrc is good approach.
I do intend to do a release-upgrade to 24.04 in the near future, but, as I said I, want to get 22.04 working properly before attempting that. I’m also concerned that the status page for this hasn’t been updated since it was reported in Sept. 2024 that release-upgrade was broken.
A release upgrade will upgrade what you have installed … I’m not a lubuntu user/maintainer but i guess the “snap free” image simply comes without firefox at all …
If you had firefox installed and upgrade it will simply try to update your install to the latest supported version of firefox to not leave you without a browser … and that comes as a snap in the newer release …