I have installed Ubuntu 14.04, which already has Firefox v31. I want to install an older version of Firefox. How can i do it?
Ubuntu – How to install an older version of Firefox
14.04firefox
Related Solutions
You should not do this, because versions of Firefox past the 3.6-series do not remain supported, even with security updates, when new versions come out. (This is why Firefox 8 is in Lucid now.) Continuing to run Firefox 7.0.1 means you are running a version that has known security vulnerabilities that are not and never will be patched--it puts you (and your customers/clients, if applicable) at risk.
Install the upstream binaries manually
Unless you can get one of the above techniques to work, the easiest way would probably be to make your script download the upstream Firefox 7.0.1 binary distribution, unpack it, and install it as root
:
[ -d /opt ] || sudo mkdir -m 755 /opt
cd /opt
if [ `uname -m` = x86_64 ]
then
sudo wget http://mirror.dacentec.com/mozilla/firefox/releases/7.0.1/linux-x86_64/en-US/firefox-7.0.1.tar.bz2
else
sudo wget http://mirror.dacentec.com/mozilla/firefox/releases/7.0.1/linux-i686/en-US/firefox-7.0.1.tar.bz2
fi
sudo tar xjf firefox-7.0.1.tar.bz2
sudo apt-get purge firefox # removes firefox; comment out if definitely uninstalled
ln -s /opt/firefox/firefox /usr/bin/firefox
A few considerations:
As explained above, you should not do this at all! (This technique is useful for other purposes, which is the main reason I'm posting about it.)
The script above doesn't check to see whether or not commands completed successfully before proceeding. It assumes that
/opt
exists with reasonable permissions or that it doesn't exist and can be created (which is pretty safe), that the download succeeds (which is not particularly safe), and that the archive successfully unpacks (which is somewhat safe, if the download succeeded). It also assumes that if you don't have a 64-bit PC (or Intel Mac), then you have a 32-bit PC (or Intel Mac), since the script would fail anyway for other architectures since binary builds are not provided upstream for them (you can still build from source for them though); while this is safe in the sense that it doesn't increase the risk of failure, it doesn't give any useful error message when the architecture is unsupported. It creates a symbolic link to the newly installed Firefox 7.0.1 binary in/usr/bin
, which will fail if you still had another version of Firefox installed, but you would want it to fail in that situation.There is no reason to think the download mirror I have used in the script is the best one for you. You might want to change it, or implement the script to figure out a reasonable mirror to download from. (If you apply this technique as I am recommending--that is, only to a similar but different problem where the software you're installing is still supported with security updates--then you'll be installing a different program and will thus have to change the argument to
wget
anyway.)Using this method, you don't have to hold the
firefox
package, because thefirefox
package is not what is providing Firefox 7.0.1. (No package is providing it; it's installed manually without the package manager.)
If you want to install the latest version of Firefox, you can perform the following in a terminal:
First use the update command to update your system's package information:
sudo apt-get update
Then use the install command to update Firefox to the latest version:
sudo apt-get install firefox
You could also use the upgrade command (sudo apt-get upgrade
), but only if you want to update all currently installed software packages.
Best Answer
This page has all the deb packages of Firefox from 3.5 to the newest version.