Andrei Pall

Linux Software Engineering

How to install Ubuntu's Firefox in Linux Mint

I recently migrated my system to Linux Mint from Ubuntu, and I was very dissapointed by the Firefox version of Linux Mint. Problems include bookmarks and the lack of autocomplete in the Google search bar (i.e. the one within the browser, at the right side). A re-installation didn’t improve anything; on the contrary, things got worst. To install Ubuntu’s Firefox in Linux Mint:

  1. Remove Mint version of Firefox.
  2. sudo apt remove firefox
  3. In directory /etc/apt/preferences.d create file firefox.pref (or any other name)
  4. sudo nano /etc/apt/preferences.d/firefox.pref
  5. with content:
  6. Package: firefox firefox-locale-*
    Pin: release o=Ubuntu
    Pin-Priority: 800
  7. Run apt-get update or similar action and install Firefox back. Now it will be always from Ubuntu repository:
  8. sudo apt update && sudo apt install firefox

If you have newly installed and not updated (!) system, you can skip first step. Just create this file, go to update manager, press “check” button (!) and install updates. Mint version of Firefox will be replaced by Ubuntu version.