14.04.5 LTS.
I need Firefox >=48 for my Travis build: https://travis-ci.org/umts/incidents/builds/240872628
So I sudo apt-get update
and sudo apt-get install firefox
, which says:
Unpacking firefox (53.0.3+build1-0ubuntu0.14.04.2) ...
etc.
But then my automated tests were failing with the same exact message as when I had the built-in version of firefox (38.4.0esr). So as a sanity check, I added firefox -v
after the install, which returns:
(process:5877): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Mozilla Firefox 38.4.0
Perhaps that failed C assertion is meaningful here? But on the face of it, apt is installing one version of a package, but then using that package gives me a much older version, despite apt having returned no error messages.
How can I successfully install and use Firefox >=48 in this context?
On Travis CI, Firefox is pre-installed at
/usr/bin/X11/firefox
, which seems to be the build geckodriver was using, regardless of whether I usedupdate-alternatives
to specify which one I wanted.So I started my build with:
to remove all existing versions of firefox. Then
sudo apt-get update
andsudo apt-get install firefox
as in my question. This worked.Thanks Ravexina for your debugging help!
Seems you have two version of Firefox installed on your Ubuntu.
one which has been installed using package manager is located at:
the other which your system is using (I guess you installed it somehow manually) is located at:
use:
to set the
/usr/bin/firefox
as your default browser. you can also run it using absolute path like/usr/bin/firefox
, for example to see the version of firefox: