upgrading firefox (Solved, THX)

New to Debian (Or Linux in general)? Ask your questions here!

upgrading firefox (Solved, THX)

Postby jppattison » 2018-02-11 17:17

I keep getting messages every so often that my firefox browser is out of date.
Code: Select all
sudo apt-get update && apt-get upgrade firefox-esr
gave me this message:
Code: Select all
are you root?
so I switched to
Code: Select all
su
to get a root prompt. then I did
Code: Select all
sudo apt-get update && apt-get upgrade firefox-esr
again, and I got this
Code: Select all
Reading state information... Done
firefox-esr is already the newest version (52.6.0esr-1~deb9u1).
firefox-esr set to manually installed.
Calculating upgrade... Done


So I guess that Firefox ver.58 isn't available for Debian, and I'm forced to just have to keep getting the
Your Firefox Browser is Out of Date, Upgrade Your Firefox
.

Would it help to enable a 'testing' repo' for long enough to upgrade the Firefox to a newer version?
(I don't even know what version 'testing' is working on, that was just a dumb question I thought I'd ask ;>) )

Other than that I've gone thru above, is there a cure for this, or do I just put up with it?
Last edited by jppattison on 2018-02-15 23:56, edited 1 time in total.
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-11 17:20

Debian stable is very good at keeping up-to-date with the latest release of Firefox but please note that the ESR version is used.

If you want the cutting-edge non-ESR version then install it locally instead using the tarball from Mozilla.

EDIT: that message should _not_ show if you are using the version from the Debian stable repositories, I think.

What is the output of
Code: Select all
which -a firefox
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby jppattison » 2018-02-11 17:37

Head_on_a_Stick wrote:Debian stable is very good at keeping up-to-date with the latest release of Firefox but please note that the ESR version is used.

If you want the cutting-edge non-ESR version then install it locally instead using the tarball from Mozilla.

EDIT: that message should _not_ show if you are using the version from the Debian stable repositories, I think.

What is the output of
Code: Select all
which -a firefox
apt-cache polict firefox-esr


This is from my /home as root -
Code: Select all
 which -a firefox apt-cache polict firefox-esr
/usr/bin/firefox
/usr/bin/apt-cache
/usr/bin/firefox-esr


If you want the cutting-edge non-ESR version then install it locally instead using the tarball from Mozilla.

I'm confused as to what you mean - "install it locally" - are you suggesting that I install it using apt-get install? Becuz if you are, I've tried that and this is what I get in response:

Code: Select all
Package firefox is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'firefox' has no installation candidate

And I don't see any Firefox in Debian Packages, even tho the search sends me to a bunch of security alerts ....
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-11 17:48

jppattison wrote:I'm confused as to what you mean - "install it locally" - are you suggesting that I install it using apt-get install?

No, do not add any non-stable repositories, that is a very silly idea.

Please read https://wiki.debian.org/DontBreakDebian

Mozilla offer a direct download that can be unpacked in your home folder and run from there without need to use APT (or root) at all ;)
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby pawRoot » 2018-02-11 18:23

You can use my shell script

Code: Select all
#!/usr/bin/env sh

### Latest Firefox 64bit en-US !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# For other operating systems replace 'os=win' with:
#   Windows 64bit              os=win64
#   OS X                       os=osx
#   Linux x86_64               os=linux64
#   Linux i686                 os=linux

wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest\&os\=linux64\&lang\=en-US

tar xvf firefox.tar.bz2

sudo rsync -a firefox /opt/
sudo ln -s /opt/firefox/firefox /usr/local/bin/
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 200
sudo update-alternatives --set x-www-browser /opt/firefox/firefox

rm firefox.tar.bz2
rm -rf firefox

sudo rm -f /usr/share/applications/firefox.desktop
sudo touch /usr/share/applications/firefox.desktop

sudo sh -c "cat >> /usr/share/applications/firefox.desktop" << 'EoT'
[Desktop Entry]
Name=Firefox
Comment=Web Browser
GenericName=Web Browser
X-GNOME-FullName=Firefox
Exec=/opt/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefox/browser/icons/mozicon128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox
StartupNotify=true
EoT
User avatar
pawRoot
 
Posts: 515
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-11 18:25

pawRoot wrote:
Code: Select all
sudo rsync -a firefox /opt/

Why copy FF to /opt?

Doesn't that mean you have to run it as root to let it update itself? :shock:

I would copy the FF binary to ~/bin so it can update as my normal user.
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby pawRoot » 2018-02-11 18:36

Head_on_a_Stick wrote:
pawRoot wrote:
Code: Select all
sudo rsync -a firefox /opt/

Why copy FF to /opt?

Doesn't that mean you have to run it as root to let it update itself? :shock:

I would copy the FF binary to ~/bin so it can update as my normal user.


I don't know, this is what they said on Debian Wiki from what i remember, but he can always modify it easily anyway :D
User avatar
pawRoot
 
Posts: 515
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby jppattison » 2018-02-11 19:28

pawRoot wrote:You can use my shell script

Code: Select all
#!/usr/bin/env sh

### Latest Firefox 64bit en-US !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# For other operating systems replace 'os=win' with:
#   Windows 64bit              os=win64
#   OS X                       os=osx
#   Linux x86_64               os=linux64
#   Linux i686                 os=linux

wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest\&os\=linux64\&lang\=en-US

tar xvf firefox.tar.bz2

sudo rsync -a firefox /opt/
sudo ln -s /opt/firefox/firefox /usr/local/bin/
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 200
sudo update-alternatives --set x-www-browser /opt/firefox/firefox

rm firefox.tar.bz2
rm -rf firefox

sudo rm -f /usr/share/applications/firefox.desktop
sudo touch /usr/share/applications/firefox.desktop

sudo sh -c "cat >> /usr/share/applications/firefox.desktop" << 'EoT'
[Desktop Entry]
Name=Firefox
Comment=Web Browser
GenericName=Web Browser
X-GNOME-FullName=Firefox
Exec=/opt/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefox/browser/icons/mozicon128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox
StartupNotify=true
EoT


Thanks a bunch pawRoot, now I get to go search the I-net to figger out how to use a shell script! :lol: :lol: :lol: :mrgreen:
Oh Well, learning something new is always a good thing!
THX
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby Wheelerof4te » 2018-02-11 19:31

https://wiki.debian.org/Firefox
If this is too much for you, you can always use Chromium.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: upgrading firefox

Postby Head_on_a_Stick » 2018-02-11 19:32

jppattison wrote:now I get to go search the I-net to figger out how to use a shell script

Running shell scripts that you do not understand (as root!) is an insanely stupid idea, please don't do that.
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: upgrading firefox

Postby pawRoot » 2018-02-11 22:31

I have modified the script a bit, thanks HOAS for advice :)

Code: Select all
#!/usr/bin/env sh

### Latest Firefox 64bit en-US !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

# For other operating systems replace 'os=win' with:
#   Windows 64bit              os=win64
#   OS X                       os=osx
#   Linux x86_64               os=linux64
#   Linux i686                 os=linux

mkdir -p ~/bin/

wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest\&os\=linux64\&lang\=en-US

tar xvf firefox.tar.bz2

sudo rsync -a firefox ~/bin/
sudo ln -s ~/bin/firefox/firefox /usr/local/bin/
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser ~/bin/firefox/firefox 200
sudo update-alternatives --set x-www-browser ~/bin/firefox/firefox

rm firefox.tar.bz2
rm -rf firefox

sudo rm -f /usr/share/applications/firefox.desktop
sudo touch /usr/share/applications/firefox.desktop

sudo sh -c "cat >> /usr/share/applications/firefox.desktop" << 'EoT'
[Desktop Entry]
Name=Firefox
Comment=Web Browser
GenericName=Web Browser
X-GNOME-FullName=Firefox
Exec=~/bin/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=~/bin/firefox/browser/icons/mozicon128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox
StartupNotify=true
EoT


To run it, save it in file.sh, then
Code: Select all
chmod +x file.sh
./file.sh
User avatar
pawRoot
 
Posts: 515
Joined: 2016-12-28 18:26
Location: Poland

Re: upgrading firefox

Postby stevepusser » 2018-02-11 22:42

Well, there's also the MX repackaged version which basically does the same thing as the script, but with a bit more customization for MX. http://mxrepo.com/mx/repo/pool/main/f/firefox/ Since it's a repackage, the mx15 and mx17 versions are the same thing, essentially.

But I suppose you also need to learn to install a .deb package?

Debian disables the ordinary update message in firefox-esr, but I suppose Mozilla has started using an end-around for that; maybe the notification system.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.1.0, wine-staging 3.16, qBittorrent 4.1.3, Linux kernel 4.18.8, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9901
Joined: 2009-10-06 05:53

Re: upgrading firefox

Postby jppattison » 2018-02-11 23:36

Wheelerof4te wrote:https://wiki.debian.org/Firefox
If this is too much for you, you can always use Chromium.


I think that's Google, who I don't care for (I use startpage instead), so if I used Chromium, I suppose I'd probably end up with Google. I was looking around for a browser, but Chrome, Chromium, Opera, and Firefox was the four best for Linux, according to one blogger. The first two I think are associated with Google, .... Opera, I tried a few years back and was unimpressed, so Firefox/Iceweasel would be the only choices AFAICS. I read somewhere that Iceweasel is now being deprecated, so there goes that!

No offense to pawRoot, but I'd probably be better off reading up on bash scripts before I attempt that. Thanks anyway, I'm going to copy and paste to a doc so that I can experiment with bash scripts on my 'testing box - Thanks.

I think I'll read up a little more and follow HOAS's advice on the Mozilla site. I've done a couple of .debs already and copied out some commands, so that's probably the best way for me to go ATM.
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby jppattison » 2018-02-12 00:02

I followed this tutorial which was very easy. I'm re-booting now to see how well it worked ;>)
jppattison
 
Posts: 42
Joined: 2015-02-23 18:13

Re: upgrading firefox

Postby pawRoot » 2018-02-12 00:07

By following the tutorial you linked to you will have Firefox installed in /opt/ , as HOAS said you won't be able to update the browser in future probably.
User avatar
pawRoot
 
Posts: 515
Joined: 2016-12-28 18:26
Location: Poland

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable