Monday, July 8, 2019

command line - I messed up Firefox, now it's not opening, what to do?


So I downloaded firefox-34.0.5.tar.bz2 manually from Firefox's website, knowing full well that I could've used the Software Updater to update from Firefox 30 to 34.


First, I searched for how to install the software from the tarball. Nothing worked. There were things like accessing README file, or INSTALL file but nothing worked


I downloaded the file from their website. No way to install.


Now, I used this guide from Libre-Software, which seemed trustworthy.


However, when I click on the launcher icon, nothing opens. It glows red for two seconds, but then nothing.


When I go to Terminal and type firefox-old because I backed up my current version to that file in /usr/bin, the old Firefox opens, which I'm using now.


Still, the Terminal keeps saying stuff I don't understand.


(process:6309): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
TypeError: external.getUnityObject is not a function
TypeError: external.getUnityObject is not a function
TypeError: external.getUnityObject is not a function
TypeError: external.getUnityObject is not a function
No permission to use the keyboard API for http://googleads.g.doubleclick.net

Although you can see what has happened if you open that guide, here's what I can make of the entire process:



  • Move extracted Firefox in /opt

  • Backup old app with sudo mv /usr/bin/firefox /usr/bin/firefox-old

  • Set up a symbolic link using sudo ln -s /opt/firefox34/firefox /usr/bin/firefox


This is really terrifying me and making me sick. Now, I don't want technical stuff, no symbolic links, no nothing.


I just want a peaceful INSTALL of Firefox that will save my data (or not - I got sync). Simple, Android or Windows-like execution, a process bar showing the installation, and poof: brand-new Firefox 34 opening in front of my eyes.


I want Ubuntu to remain the Linux for humans, so I would appreciate it if a little tweaking around (even command-based) can do the magic.



One thing you can do is back up your profile and then simply remove the manually installed Firefox 34. I don't know what steps you took to install Firefox manually, so I'm afraid I can't be much of a help with the removal step.




Step 1: Back up your Firefox profile:


First step you'll want to do is go into your .mozilla folder in the home directory. You may have to press Ctrl+H to show hidden files & folders:


.mozilla


Next, go into firefox within the .mozilla folder:


.mozilla -> firefox


The window that pops up should look similar to mine, albeit with only the Crash Reports and a ******.default (* = random numbers & letters used by Firefox) folder:


.mozilla -> firefox #2


Copy/paste all the files & folders to your desktop, we'll restore them later.




Step 2: Remove current installation:


Once again, I don't know how exactly you installed Firefox manually, so I'm not going to be much help in this step.


Just remove the current installation as best you can, making sure that you have a copy of the folders & file mentioned above.




Step 3: Install via apt-get:


You should now be able to install Firefox from the official repository via apt-get.


Simply run this in terminal (Ctrl+Alt+T):


sudo apt-get update && sudo apt-get install firefox

This should install Firefox in working order for you and will provide you with automatic updates too! Now, this method won't necessarily give you the most up to date version of Firefox, but it should keep you pretty close if not on the current version.




Step 4: Restore your profile:


Once you've installed Firefox you should be able to simply copy/paste those files you copied to your desktop earlier back to the ~/.mozilla/firefox directory.


The profiles.ini file is what tells Firefox what profile to look at for bookmarks and whatnot, so by backing it up we can simply replace the one that Firefox created when it was installed. This will make it so that Firefox looks at your profile from your previous installation and so you shouldn't lose anything!


Hope this helps!


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...