Downgrade firefox using .deb file

Downgrade firefox using .deb file

System: Ubuntu 14.04.5
Problems:
I use firefox version 47 for a screenshot solution using selenium in python. After a system update, the firefox updated to latest version 48 (2016, Aug, 02), and raises a error:
WebDriverException: Message: Requested size exceeds screen size

There is a discussion about talking this bug here.
Solution: Before he new bug -fix version is available, I decide to first down grade it to version 47.
Steps:

1. sudo apt-get purge firefox
  sudo apt-get autoremove
  
    This first will remove firefox, and the second will move all the dependencies that is not used anymore. I got this recommended by ubuntu after run  the first cmd. List the autoremoved packages below, in case any dependency is missed from other cmd :
The following packages were automatically installed and are no longer required:
  acl at-spi2-core colord dconf-gsettings-backend dconf-service fontconfig
  fontconfig-config fonts-dejavu-core hicolor-icon-theme libasound2
  libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
  libcairo-gobject2 libcairo2 libcanberra0 libcolord1 libcolorhug1 libdatrie1
  libdbusmenu-glib4 libdbusmenu-gtk4 libdconf1 libexif12 libfontconfig1 libgd3
  libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgphoto2-6 libgphoto2-l10n
  libgphoto2-port10 libgraphite2-3 libgtk-3-0 libgtk-3-bin libgtk-3-common
  libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libgusb2
  libharfbuzz0b libieee1284-3 libjasper1 libjbig0 libjpeg-turbo8 libjpeg8
  liblcms2-2 libltdl7 libogg0 libpango-1.0-0 libpangocairo-1.0-0
  libpangoft2-1.0-0 libsane libsane-common libstartup-notification0
  libthai-data libthai0 libtiff5 libv4l-0 libv4lconvert0 libvorbis0a
  libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0 libxcb-render0
  libxcb-shm0 libxcb-util0 libxcomposite1 libxcursor1 libxi6 libxinerama1
  libxkbcommon0 libxrandr2 libxrender1 libxtst6 sound-theme-freedesktop
  xul-ext-ubufox

Use 'apt-get autoremove' to remove them.

2. download the .deb version that you need from the version list web:
https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/
32 bit system:
wget sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_47.0.1-0ubuntu1_i386.deb
64 bit system:
 wget sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_47.0.1-0ubuntu1_amd64.deb

If you install it wrong, for example 64bit system install i386, when you run ¨firefox¨ in the termimal you will get error like below:
XPCOMGlueLoad error for file /home/parallels/firefox-32/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
3. Install .deb file
In the folder where you download the .deb file:
  sudo dpkg -i firefox-mozilla-build_47.0.1-0ubuntu1_amd64.deb

Test to run whether the new version is installed, in terminal, run the command:
firefox -v
If you get the version you want, then it works. If not, it maybe because your system has not fully cleared up firefox. You better even restart your system after step 1.  

Comments

Popular posts from this blog

install ipython in Cloudera VM using pip

install postgreSQL in ubuntu 16.04

Install MYSQL 5.6 in ubuntu 12.04/14.04 and set password and remote access