There's no reason to put those specifically in the /etc/apt/preferences.d/official-package-repositories.pref file. Just create your own preferences file. Say create the file /etc/apt/preferences.d/firefox-ubuntu.pref and don't forget you want the priority
higher than Linux Mint's import repository. So make it 701.
Code: Select all
Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: 701
Update Manager might not offer you to install Ubuntu's Firefox, if it's not a newer version than Linux Mint's. In that case you'll have to one time explicitly install Firefox from Ubuntu's repositories. Check which Firefox packages you have installed for example with (for me it is firefox and firefox-locale-en):
Then reinstall those packages explicitly from Ubuntu's repositories with:
Code: Select all
apt install -t trusty firefox firefox-locale-en
You can check with the following command where Firefox was installed from and whether you've set pin priority correct: