Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [SOLVED] sudo firefox has destroyed my browser :(

  1. #1
    Join Date
    May 2007
    Location
    travelling, now: Berlin
    Beans
    206
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] sudo firefox has destroyed my browser :(

    Since the "Check for updates" was greyed out, I ran "sudo firefox" to check for updates (next time I'll just wait for Synaptec). After I did that I was browsing around as normal and was in the process of installing one add-on (Fission), when the browser crashed.

    Now I have several problems in it; first my bookmarks have completely disappeared and the Restore option doesn't work (even though the files themselves for restoring are fine). The Back/Forward buttons are greyed out and I can only use them by right clicking and selecting from the drop-down menu. It crashes MUCH more regularly AND I can't see the web address in the address bar!! There are likely other problems I'm not aware of. Everything else (other add-ons, greasemonkey etc.) seem unaffected.

    Advice hugely appreciated for this!! I'm at a loss at what to do.. if I reinstall will I lose all my add-ons?
    Thanks guys!!

  2. #2
    Join Date
    Jun 2006
    Location
    Solihull, UK
    Beans
    1,413

    Re: sudo firefox has destroyed my browser :(

    'sudo firefox' is bad, as you've just learned. As you've realised, you should let Synaptic handle updates for anything you've installed via the package manager. If you must run a graphical tool as root, always use 'gksudo' (NOT sudo)

    Your problem is most likely that root now owns some or all of your Firefox profile. To fix:

    Code:
    sudo chown -R <user_name>:<user_name> ~/.mozilla
    ...where <user_name> is your user name

  3. #3
    Join Date
    Feb 2008
    Location
    $pwd
    Beans
    329
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: sudo firefox has destroyed my browser :(

    Quote Originally Posted by chrisccoulson View Post
    'sudo firefox' is bad, as you've just learned. As you've realised, you should let Synaptic handle updates for anything you've installed via the package manager. If you must run a graphical tool as root, always use 'gksudo' (NOT sudo)

    Your problem is most likely that root now owns some or all of your Firefox profile. To fix:

    Code:
    sudo chown -R <user_name>:<user_name> ~/.mozilla
    ...where <user_name> is your user name
    +1.
    is totally right

    if this don't work, i suggest a reinstallation of firefox from the synaptic.
    Unique Beautiful Unlimited New Trust Unix

  4. #4
    Join Date
    May 2007
    Location
    travelling, now: Berlin
    Beans
    206
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: sudo firefox has destroyed my browser :(

    Wow! Completely solved the problem in one line of code I've learned my lesson!!! I'll use sudo sparingly from now on; cheers mate!

  5. #5
    Join Date
    Feb 2008
    Location
    $pwd
    Beans
    329
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: sudo firefox has destroyed my browser :(

    glad to hear that.
    Unique Beautiful Unlimited New Trust Unix

  6. #6
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo firefox has destroyed my browser :(

    Quote Originally Posted by Irishpolyglot View Post
    Wow! Completely solved the problem in one line of code I've learned my lesson!!! I'll use sudo sparingly from now on; cheers mate!
    It's a little more complicated than that. It's not that sudo is inherently bad (though it should be used sparingly for other reasons), but sudo should not be used with graphical applications like Firefox. For that, you should use gksudo or kdesu

    For more details read this:
    http://www.psychocats.net/ubuntu/graphicalsudo

  7. #7
    Join Date
    May 2007
    Location
    travelling, now: Berlin
    Beans
    206
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: sudo firefox has destroyed my browser :(

    Of course your right aysiu. I've used it many many times before... but I had never been shown it's potential for evil until now I got that suggestion from a comment on the lifehacker blog. It just goes to show that I can't use code that ANYONE says would be a good idea. I'll not stop using sudo, but I will think twice before I use it in questionable situations like that one! Or at least use its graphical counterpart!!
    Thanks for the advice!

  8. #8
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sudo firefox has destroyed my browser :(

    By the way, the gksudo firefox to check for updates works only if you're using the .tar.gz from the Mozilla website.

    If you're using the Firefox that Ubuntu packages, you just wait for the updates with your regular software updates for the entire Ubuntu system.

  9. #9
    Join Date
    May 2008
    Beans
    7

    Re: sudo firefox has destroyed my browser :(

    Bloody hell. So that was what's wrong with Firefox 3!

    I have been stuck using the Extension-less Epiphany or the surprisingly Extension-install/uninstallable Firefox 2.0.0.14 (which I downloaded to replace FF3) because I ran sudo firefox.

    Thanks a whole a lot.

  10. #10
    Join Date
    Dec 2007
    Location
    Illinois
    Beans
    49
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: sudo firefox has destroyed my browser :(

    Quote Originally Posted by chrisccoulson View Post
    'sudo firefox' is bad, as you've just learned. As you've realised, you should let Synaptic handle updates for anything you've installed via the package manager. If you must run a graphical tool as root, always use 'gksudo' (NOT sudo)

    Your problem is most likely that root now owns some or all of your Firefox profile. To fix:

    Code:
    sudo chown -R <user_name>:<user_name> ~/.mozilla
    ...where <user_name> is your user name
    Had to help my brother who decided to run 'sudo firefox', and this did the trick. Thanks for posting the tip-- I also didn't realize the difference between sudo and gksudo (other than the graphical password prompt).
    Scott Wegner
    automaticable.com

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •