ObjectiveInstall Firefox 57, Quantum, on Debian Stretch
DistributionsDebian 9 Stretch
RequirementsA working Debian Stretch install with root privileges.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
IntroductionFirefox 57 is easily the best update to come to Firefox ever. Mozilla even named this release "Quantum" because of how dramatically the browser speed improved. Couple that with the complete redesign of Firefox's UI, and you have a pretty dramatic change.
Thanks to Debian's release schedule, it's unlikely that Stretch will ever officially see Firefox 57. However, it is available in Sid. You won't need to upgrade all the way to Sid to get it either. You only need to tell Debian to use Firefox from Sid.
Add the Sid ReposYou need to add the Sid repositories to Stretch in order to pull the Firefox package. Open
/etc/apt/sources.listwith your favorite text editor and add in the following two lines.
deb http://ftp.us.debian.org/debian/ sid main deb-src http://ftp.us.debian.org/debian/ sid mainSave and exit.
Apt PinningNext, you're going to need to tell Apt to prioritize all of the packages from Stretch over the ones from Sid, except for the ones you'll need for Firefox. If you don't already have one, create a file at
/etc/apt/preferencesIn it, first place the rules to tell Apt to use Stretch over Sid.
Package: * Pin: release a=stable Pin-Priority: 1000 Package: * Pin: release a=unstable Pin-Priority: 2
There are three dependencies that you'll need to pin in addition to Firefox. Set each of them up too.
Once you have that, save and exit.
Package: firefox Pin: release a=unstable Pin-Priority: 1001 Package: libfontconfig1 Pin: release a=unstable Pin-Priority: 1001 Package: fontconfig-config Pin: release a=unstable Pin-Priority: 1001 Package: libnss3 Pin: release a=unstable Pin-Priority: 1001
Install FirefoxFinally, you're ready to install Firefox. You just need to update Apt, and tell Apt to install Firefox from Sid.
# apt update # apt install -t sid firefox
Apt will install Firefox alongside the ESR release. The two are independent, so you can keep both or remove one or the other.