LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2015, 06:17 AM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
Ruario's latest-firefox error


I have been a happy user of Ruario's excellent latest-firefox and chrome scripts for a while. Thanks for them.

I have hit an issue that I don't understand on a new install of 14.1 64bit.

The error is as follows:

Quote:
./latest-firefox: line 73: [: 41.0.1: binary operator expected
./latest-firefox: line 162: [: firefox-41.0.1: binary operator expected
--2015-11-02 12:06:44-- http://ftp.mozilla.org/pub/mozilla.o...eleases/41.0.1
Resolving ftp.mozilla.org (ftp.mozilla.org)... 54.230.196.206
Connecting to ftp.mozilla.org (ftp.mozilla.org)|54.230.196.206|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-11-02 12:06:45 ERROR 404: Not Found.

--2015-11-02 12:06:45-- http://41.0.2/linux-x86_64/en-US/firefox-41.0.1
Resolving 41.0.2 (41.0.2)... 41.0.0.2
Connecting to 41.0.2 (41.0.2)|41.0.0.2|:80... failed: Connection timed out.
Retrying.

--2015-11-02 12:08:53-- (try: 2) http://41.0.2/linux-x86_64/en-US/firefox-41.0.1
Connecting to 41.0.2 (41.0.2)|41.0.0.2|:80...
I don't understand. Can anybody point me in the right direction?

Thanks
 
Old 11-02-2015, 06:53 AM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
go here

check this out HERE they say how to fix it, ftp.mozilla.org shows that two versions of Firefox are available
 
1 members found this post helpful.
Old 11-02-2015, 07:12 AM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Brilliant. That worked. Many thanks.
 
Old 11-02-2015, 10:43 AM   #4
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
One can also run it like this:
Code:
VERSION=41.0.2 latest-firefox
which might not be as convenient, though.
 
1 members found this post helpful.
Old 11-23-2015, 07:40 AM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Hmm... I missed this at the time. I have not been using Firefox much for the last few months so did not encounter the problem myself. Anyway, it seems the issue went away and then another appeared.

Mozilla have changed their download options. They used to have "latest" symlinks on their ftp server pointing to the most recent version for a given OS and locale. Now they suggest you using a GET request to download.mozilla.org to find your required version, e.g. to find the latest 64Bit Linux version you access download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US.

They may have done this to avoid issues like the one that spawned this thread, where two versions are found in the same latest folder. Whatever the reason, this new change was also discussed (and worked around) in this thread.

Anyway, I just wanted people (copied only on this thread) to know that I have updated my latest-firefox gist to use a GET request to download.mozilla.org work out the version. If you still have an old version, download a new one from there.
 
5 members found this post helpful.
Old 11-23-2015, 08:06 AM   #6
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Excellent. Many thanks ruario.
 
Old 11-23-2015, 01:24 PM   #7
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
Ruario, I have downloaded your last script but it seems not to work, the error message is:
Could not work out the latest version; exiting
 
Old 11-23-2015, 01:28 PM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Are you sure you are running the latest version. Check it out like so and run it verbosely, so that you get some idea of how far it got and what the problem is:

Code:
git clone https://gist.github.com/9672798.git
bash -x 9672798/latest-firefox
P.S. You could also check the version you have locally. It should be 1.3.5, Check like so:

Code:
grep 'latest-firefox Version' latest-firefox

Last edited by ruario; 11-23-2015 at 01:37 PM.
 
Old 11-23-2015, 01:58 PM   #9
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
Yes, the version is really 1.3.5.
 
Old 11-23-2015, 02:10 PM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
what does this return

Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
 
Old 11-23-2015, 02:30 PM   #11
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
root@ibm:~# wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
Spider mode enabled. Check if remote file exists.
--2015-11-23 21:28:56-- https://download.mozilla.org/?produc...x64&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 52.22.193.206
Connecting to download.mozilla.org (download.mozilla.org)|52.22.193.206|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.cdn.mozilla.net/pub/...x-42.0.tar.bz2 [following]
0 redirections exceeded.


But I don't use x86_64.
 
Old 11-23-2015, 02:39 PM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Ok. I want to check two different things.

Firstly, what does this return if run from the terminal where you have been running this script?

Code:
echo $VERSION
If addition, please confirm that what this returns:

Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'
 
Old 11-23-2015, 02:42 PM   #13
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
Quote:
Originally Posted by ruario View Post
Ok. I want to check two different things.

Firstly, what does this return if run from the terminal where you have been running this script?

Code:
echo $VERSION
If addition, please confirm that what this returns:

Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'
echo $VERSION => returns nothing
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'

returns nothing
 
Old 11-23-2015, 03:25 PM   #14
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
ok, then how about just this:

Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US'
 
Old 11-23-2015, 03:33 PM   #15
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
root@ibm:~# wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US'
Spider mode enabled. Check if remote file exists.
--2015-11-23 22:33:09-- https://download.mozilla.org/?produc...nux&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 54.86.158.87
Connecting to download.mozilla.org (download.mozilla.org)|54.86.158.87|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download.cdn.mozilla.net/pub/...x-42.0.tar.bz2 [following]
0 redirections exceeded.

returns nothing
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running ruario's latest-chrome dsotm Slackware 3 01-19-2014 10:53 AM
[SOLVED] Firefox 21 and Ruario's latest-firefox script neymac Slackware 14 12-19-2013 10:25 PM
[Request] README.TXT needed for the /EFI Directory (Ping Volkerdi, Ruario) ottavio Slackware - Installation 1 08-18-2013 08:01 AM
Ubuntu "9.04" EeePC 1000H latest Firefox latest Flash unreliable DalePace Linux - Laptop and Netbook 1 08-23-2009 02:02 PM
Firefox died (Fedora Core 1, firefox latest) Brakki Fedora 1 03-05-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration